Hi Julien,
Thanks for your prompt response.
PFB my grok exporter config
global:
config_version: 3
input:
type: file
paths:
- /root/grok_exporter-1.0.0.RC3.linux-amd64/example/ptchecksum.out
- /root/grok_exporter-1.0.0.RC3.linux-amd64/example/ptchecksum.err
imports:
- type: grok_patterns
dir: ./patterns
grok_patterns:
- 'CHECKSUMOUT [a-zA-Z ]*'
metrics:
- type: counter
name: mysql_ptchecksum_checksum_stats
help: mysql ptchecksum stats.
match:
'%{MONTHDAY:month}\-%{MONTHDAY:date}\T%{TIME:logtime}\s.*%{INT:ERRORS}\s.*%{INT:DIFFS}\s.*%{NUMBER:ROWS}\s.*%{INT:DIFF_ROWS}\s.*%{INT:CHUNKS}\s.*%{INT:SKIPPED}\s.*%{NUMBER:time}
%{GREEDYDATA:TABLE}'
labels:
diffs: '{{.DIFFS}}'
table: '{{.TABLE}}'
date: '{{.date}}'
errors: '{{.ERRORS}}'
rows: '{{.ROWS}}'
diff_rows: '{{.DIFF_ROWS}}'
chunks: '{{.CHUNKS}}'
TS: '{{.logtime}}'
time: '{{.time}}'
- type: gauge
name: mysql_ptchecksum_checksuming_status
help: mysql ptchecksum cheksuming status.
match:
'%{GREEDYDATA:checksum_status}\s%{GREEDYDATA:tabel}\:.*%{NUMBER:completion_percentage}\%\s.*%{NUMBER:TimeRemainingHours}\:%{NUMBER:TimeRemainingMinutes}'
value: '{{.completion_percentage}}'
labels:
status: '{{.checksum_status}}'
tabel: '{{.tabel}}'
- type: gauge
name: mysql_ptchecksum_waiting_status
help: mysql ptchecksum waiting status.
match: 'Replica
lag\s.*\is\s.*%{INT:seconds}\s%{GREEDYDATA:data}\son\s%{GREEDYDATA:server}\.\s'
value: '{{.seconds}}'
labels:
server: '{{.server}}'
server:
protocol: http
port: 9144
On Sun, May 24, 2020 at 8:59 PM Julien Pivotto <[email protected]>
wrote:
> Please share your grok exporter configuration
>
> Le dim. 24 mai 2020 à 16:54, Deep saraswat <[email protected]> a
> écrit :
>
>> Hi Akila,
>>
>> I am too stuck with this issue. Did you find the solution to this problem?
>>
>> Regards
>> Deependra
>>
>> On Thu, Jul 18, 2019 at 8:42 PM Akila Jayasinghe <
>> [email protected]> wrote:
>>
>>> I have a Grok exporter gauge metric which returning API response time in
>>> a audit log file. I'm using grafana dashboard to visualize Prometheus
>>> values.
>>>
>>> [image: image.png]Problem is Prometheus holding last value of metric
>>> until a new value come for it. Think if "XXX" API's response time is 5
>>> second on 08:33 time and when 08:34 time "XXX" API not called again. But
>>> Prometheus still holding his last value until getting a new value. My
>>> requirement is, only return current values of the API. (Only return called
>>> API response time.)
>>>
>>>
>>> I need a solution to clear this issue. Please kindly assist.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Prometheus Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-users/2f3a20f7-9062-47ee-80d3-41b8bde4d648%40googlegroups.com
>>> <https://groups.google.com/d/msgid/prometheus-users/2f3a20f7-9062-47ee-80d3-41b8bde4d648%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Prometheus Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/prometheus-users/CAGDB%2Bza14pNehuDvPX8TjFyim3XTtUhORaBn0SpYPshyx%3DqbYw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/prometheus-users/CAGDB%2Bza14pNehuDvPX8TjFyim3XTtUhORaBn0SpYPshyx%3DqbYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CAGDB%2BzZUcw8oTpinyU96oYhLLLgFNQwDMb%2BMcHrYRhffxkOVHw%40mail.gmail.com.