Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
|
@ -0,0 +1,46 @@
|
|||
process_start_time_seconds,_type=gauge gauge=1606393397
|
||||
dovecot_build,revision=38ecc424a,version=2.4.devel info=1u
|
||||
dovecot_auth_success,_type=counter counter=892
|
||||
dovecot_auth_success_duration_seconds,_type=counter counter=0.085479
|
||||
dovecot_imap_command,_type=counter,cmd_name=LIST counter=423
|
||||
dovecot_imap_command,_type=counter,cmd_name=LIST,tagged_reply_state=OK counter=423
|
||||
dovecot_imap_command,_type=counter,cmd_name=STATUS counter=468
|
||||
dovecot_imap_command,_type=counter,cmd_name=STATUS,tagged_reply_state=OK counter=468
|
||||
dovecot_imap_command,_type=counter,cmd_name=SELECT counter=890
|
||||
dovecot_imap_command,_type=counter,cmd_name=SELECT,tagged_reply_state=OK counter=890
|
||||
dovecot_imap_command,_type=counter,cmd_name=APPEND counter=449
|
||||
dovecot_imap_command,_type=counter,cmd_name=APPEND,tagged_reply_state=OK counter=449
|
||||
dovecot_imap_command,_type=counter,cmd_name=LOGOUT counter=892
|
||||
dovecot_imap_command,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK counter=892
|
||||
dovecot_imap_command,_type=counter,cmd_name=UID\ FETCH counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=FETCH counter=2148
|
||||
dovecot_imap_command,_type=counter,cmd_name=FETCH,tagged_reply_state=OK counter=2148
|
||||
dovecot_imap_command,_type=counter,cmd_name=STORE counter=794
|
||||
dovecot_imap_command,_type=counter,cmd_name=STORE,tagged_reply_state=OK counter=794
|
||||
dovecot_imap_command,_type=counter,cmd_name=EXPUNGE counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK counter=888
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LIST counter=0.099115
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LIST,tagged_reply_state=OK counter=0.099115
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STATUS counter=0.161195
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STATUS,tagged_reply_state=OK counter=0.161195
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=SELECT counter=0.184907
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=SELECT,tagged_reply_state=OK counter=0.184907
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=APPEND counter=0.273893
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=APPEND,tagged_reply_state=OK counter=0.273893
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LOGOUT counter=0.033494
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK counter=0.033494
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=UID\ FETCH counter=0.181319
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK counter=0.181319
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=FETCH counter=1.169456
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=FETCH,tagged_reply_state=OK counter=1.169456
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STORE counter=0.368621
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STORE,tagged_reply_state=OK counter=0.368621
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=EXPUNGE counter=0.247657
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK counter=0.247657
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=LHLO,status_code=250 +Inf=1,10=0,100=1,1000=1,10000=1,100000=1,count=1,sum=0.00002
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=MAIL,status_code=250 +Inf=1,10=0,100=1,1000=1,10000=1,100000=1,count=1,sum=0.000021
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=RCPT,status_code=250 +Inf=1,10=0,100=0,1000=1,10000=1,100000=1,count=1,sum=0.000195
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=DATA,status_code=250 +Inf=1,10=0,100=0,1000=0,10000=1,100000=1,count=1,sum=0.001249
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=QUIT,status_code=221 +Inf=1,10=1,100=1,1000=1,10000=1,100000=1,count=1,sum=0.00001
|
||||
dovecot_mail_delivery,_type=histogram +Inf=1,10=0,100=0,1000=1,10000=1,100000=1,count=1,sum=0.000656
|
|
@ -0,0 +1,82 @@
|
|||
openmetric,_type=gauge process_start_time_seconds=1606393397
|
||||
openmetric,_type=untyped,version=2.4.devel,revision=38ecc424a dovecot_build_info=1u
|
||||
openmetric,_type=counter dovecot_auth_success=892
|
||||
openmetric,_type=counter dovecot_auth_success_duration_seconds=0.085479
|
||||
openmetric,_type=counter,cmd_name=LIST dovecot_imap_command=423
|
||||
openmetric,_type=counter,cmd_name=LIST,tagged_reply_state=OK dovecot_imap_command=423
|
||||
openmetric,_type=counter,cmd_name=STATUS dovecot_imap_command=468
|
||||
openmetric,_type=counter,cmd_name=STATUS,tagged_reply_state=OK dovecot_imap_command=468
|
||||
openmetric,_type=counter,cmd_name=SELECT dovecot_imap_command=890
|
||||
openmetric,_type=counter,cmd_name=SELECT,tagged_reply_state=OK dovecot_imap_command=890
|
||||
openmetric,_type=counter,cmd_name=APPEND dovecot_imap_command=449
|
||||
openmetric,_type=counter,cmd_name=APPEND,tagged_reply_state=OK dovecot_imap_command=449
|
||||
openmetric,_type=counter,cmd_name=LOGOUT dovecot_imap_command=892
|
||||
openmetric,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK dovecot_imap_command=892
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=FETCH dovecot_imap_command=2148
|
||||
openmetric,_type=counter,cmd_name=FETCH,tagged_reply_state=OK dovecot_imap_command=2148
|
||||
openmetric,_type=counter,cmd_name=STORE dovecot_imap_command=794
|
||||
openmetric,_type=counter,cmd_name=STORE,tagged_reply_state=OK dovecot_imap_command=794
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=LIST dovecot_imap_command_duration_seconds=0.099115
|
||||
openmetric,_type=counter,cmd_name=LIST,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.099115
|
||||
openmetric,_type=counter,cmd_name=STATUS dovecot_imap_command_duration_seconds=0.161195
|
||||
openmetric,_type=counter,cmd_name=STATUS,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.161195
|
||||
openmetric,_type=counter,cmd_name=SELECT dovecot_imap_command_duration_seconds=0.184907
|
||||
openmetric,_type=counter,cmd_name=SELECT,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.184907
|
||||
openmetric,_type=counter,cmd_name=APPEND dovecot_imap_command_duration_seconds=0.273893
|
||||
openmetric,_type=counter,cmd_name=APPEND,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.273893
|
||||
openmetric,_type=counter,cmd_name=LOGOUT dovecot_imap_command_duration_seconds=0.033494
|
||||
openmetric,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.033494
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH dovecot_imap_command_duration_seconds=0.181319
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.181319
|
||||
openmetric,_type=counter,cmd_name=FETCH dovecot_imap_command_duration_seconds=1.169456
|
||||
openmetric,_type=counter,cmd_name=FETCH,tagged_reply_state=OK dovecot_imap_command_duration_seconds=1.169456
|
||||
openmetric,_type=counter,cmd_name=STORE dovecot_imap_command_duration_seconds=0.368621
|
||||
openmetric,_type=counter,cmd_name=STORE,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.368621
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE dovecot_imap_command_duration_seconds=0.247657
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.247657
|
||||
openmetric,_type=histogram,cmd_name=LHLO,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.00002
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=100,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.000021
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=100,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.000195
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=100,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.001249
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=100,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=1000,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,status_code=221 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.00001
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=10,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=100,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=1000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=10000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=100000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=+Inf,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram dovecot_mail_delivery_count=1,dovecot_mail_delivery_sum=0.000656
|
||||
openmetric,_type=histogram,le=10 dovecot_mail_delivery_bucket=0
|
||||
openmetric,_type=histogram,le=100 dovecot_mail_delivery_bucket=0
|
||||
openmetric,_type=histogram,le=1000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=10000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=100000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=+Inf dovecot_mail_delivery_bucket=1
|
107
plugins/parsers/openmetrics/testcases/dovecot/input.txt
Normal file
107
plugins/parsers/openmetrics/testcases/dovecot/input.txt
Normal file
|
@ -0,0 +1,107 @@
|
|||
# HELP process_start_time_seconds Timestamp of service start
|
||||
# TYPE process_start_time_seconds gauge
|
||||
process_start_time_seconds 1606393397
|
||||
# HELP dovecot_build Dovecot build information
|
||||
# TYPE dovecot_build info
|
||||
dovecot_build_info{version="2.4.devel",revision="38ecc424a"} 1
|
||||
# HELP dovecot_auth_success Total number of all events of this kind
|
||||
# TYPE dovecot_auth_success counter
|
||||
dovecot_auth_success_total 892
|
||||
# HELP dovecot_auth_success_duration_seconds Total duration of all events of this kind
|
||||
# TYPE dovecot_auth_success_duration_seconds counter
|
||||
dovecot_auth_success_duration_seconds_total 0.085479
|
||||
# HELP dovecot_imap_command Total number of all events of this kind
|
||||
# TYPE dovecot_imap_command counter
|
||||
dovecot_imap_command_total{cmd_name="LIST"} 423
|
||||
dovecot_imap_command_total{cmd_name="LIST",tagged_reply_state="OK"} 423
|
||||
dovecot_imap_command_total{cmd_name="STATUS"} 468
|
||||
dovecot_imap_command_total{cmd_name="STATUS",tagged_reply_state="OK"} 468
|
||||
dovecot_imap_command_total{cmd_name="SELECT"} 890
|
||||
dovecot_imap_command_total{cmd_name="SELECT",tagged_reply_state="OK"} 890
|
||||
dovecot_imap_command_total{cmd_name="APPEND"} 449
|
||||
dovecot_imap_command_total{cmd_name="APPEND",tagged_reply_state="OK"} 449
|
||||
dovecot_imap_command_total{cmd_name="LOGOUT"} 892
|
||||
dovecot_imap_command_total{cmd_name="LOGOUT",tagged_reply_state="OK"} 892
|
||||
dovecot_imap_command_total{cmd_name="UID FETCH"} 888
|
||||
dovecot_imap_command_total{cmd_name="UID FETCH",tagged_reply_state="OK"} 888
|
||||
dovecot_imap_command_total{cmd_name="FETCH"} 2148
|
||||
dovecot_imap_command_total{cmd_name="FETCH",tagged_reply_state="OK"} 2148
|
||||
dovecot_imap_command_total{cmd_name="STORE"} 794
|
||||
dovecot_imap_command_total{cmd_name="STORE",tagged_reply_state="OK"} 794
|
||||
dovecot_imap_command_total{cmd_name="EXPUNGE"} 888
|
||||
dovecot_imap_command_total{cmd_name="EXPUNGE",tagged_reply_state="OK"} 888
|
||||
dovecot_imap_command_count 7840
|
||||
# HELP dovecot_imap_command_duration_seconds Total duration of all events of this kind
|
||||
# TYPE dovecot_imap_command_duration_seconds counter
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="LIST"} 0.099115
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="LIST",tagged_reply_state="OK"} 0.099115
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="STATUS"} 0.161195
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="STATUS",tagged_reply_state="OK"} 0.161195
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="SELECT"} 0.184907
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="SELECT",tagged_reply_state="OK"} 0.184907
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="APPEND"} 0.273893
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="APPEND",tagged_reply_state="OK"} 0.273893
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="LOGOUT"} 0.033494
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="LOGOUT",tagged_reply_state="OK"} 0.033494
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="UID FETCH"} 0.181319
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="UID FETCH",tagged_reply_state="OK"} 0.181319
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="FETCH"} 1.169456
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="FETCH",tagged_reply_state="OK"} 1.169456
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="STORE"} 0.368621
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="STORE",tagged_reply_state="OK"} 0.368621
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="EXPUNGE"} 0.247657
|
||||
dovecot_imap_command_duration_seconds_total{cmd_name="EXPUNGE",tagged_reply_state="OK"} 0.247657
|
||||
dovecot_imap_command_duration_seconds_sum 2.719657
|
||||
# HELP dovecot_smtp_command Histogram
|
||||
# TYPE dovecot_smtp_command histogram
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="10"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="100"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="1000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="10000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="100000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="+Inf"} 1
|
||||
dovecot_smtp_command_sum{cmd_name="LHLO",status_code="250"} 0.000020
|
||||
dovecot_smtp_command_count{cmd_name="LHLO",status_code="250"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="10"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="100"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="1000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="10000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="100000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="+Inf"} 1
|
||||
dovecot_smtp_command_sum{cmd_name="MAIL",status_code="250"} 0.000021
|
||||
dovecot_smtp_command_count{cmd_name="MAIL",status_code="250"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="10"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="100"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="1000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="10000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="100000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="250",le="+Inf"} 1
|
||||
dovecot_smtp_command_sum{cmd_name="RCPT",status_code="250"} 0.000195
|
||||
dovecot_smtp_command_count{cmd_name="RCPT",status_code="250"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="10"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="100"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="1000"} 0
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="10000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="100000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="250",le="+Inf"} 1
|
||||
dovecot_smtp_command_sum{cmd_name="DATA",status_code="250"} 0.001249
|
||||
dovecot_smtp_command_count{cmd_name="DATA",status_code="250"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="10"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="100"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="1000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="10000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="100000"} 1
|
||||
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="+Inf"} 1
|
||||
dovecot_smtp_command_sum{cmd_name="QUIT",status_code="221"} 0.000010
|
||||
dovecot_smtp_command_count{cmd_name="QUIT",status_code="221"} 1
|
||||
# HELP dovecot_mail_delivery Histogram
|
||||
# TYPE dovecot_mail_delivery histogram
|
||||
dovecot_mail_delivery_bucket{le="10"} 0
|
||||
dovecot_mail_delivery_bucket{le="100"} 0
|
||||
dovecot_mail_delivery_bucket{le="1000"} 1
|
||||
dovecot_mail_delivery_bucket{le="10000"} 1
|
||||
dovecot_mail_delivery_bucket{le="100000"} 1
|
||||
dovecot_mail_delivery_bucket{le="+Inf"} 1
|
||||
dovecot_mail_delivery_sum 0.000656
|
||||
dovecot_mail_delivery_count 1
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
acme_http_router_request_seconds,_type=summary,unit=seconds,path=/api/v1,method=GET sum=9036.32,count=807283.0,created=1605281325.0,0.5=1.29854,0.9=54.85479,0.99=6884.32324
|
||||
acme_http_router_request_seconds,_type=summary,unit=seconds,path=/api/v2,method=POST sum=479.3,count=34.0,created=1605281325.0,0.5=0.85412,0.9=1.15429,0.99=3698.48132
|
||||
go_goroutines,_type=gauge gauge=69
|
||||
process_cpu_seconds,_type=counter,unit=seconds counter=4200722.46
|
|
@ -0,0 +1,10 @@
|
|||
openmetric,_type=summary,method=GET,path=/api/v1,unit=seconds acme_http_router_request_seconds_count=807283,acme_http_router_request_seconds_created=1605281325,acme_http_router_request_seconds_sum=9036.32
|
||||
openmetric,_type=summary,method=GET,path=/api/v1,quantile=0.5,unit=seconds acme_http_router_request_seconds=1.29854
|
||||
openmetric,_type=summary,method=GET,path=/api/v1,quantile=0.9,unit=seconds acme_http_router_request_seconds=54.85479
|
||||
openmetric,_type=summary,method=GET,path=/api/v1,quantile=0.99,unit=seconds acme_http_router_request_seconds=6884.32324
|
||||
openmetric,_type=summary,method=POST,path=/api/v2,unit=seconds acme_http_router_request_seconds_count=34,acme_http_router_request_seconds_created=1605281325,acme_http_router_request_seconds_sum=479.3
|
||||
openmetric,_type=summary,method=POST,path=/api/v2,quantile=0.5,unit=seconds acme_http_router_request_seconds=0.85412
|
||||
openmetric,_type=summary,method=POST,path=/api/v2,quantile=0.9,unit=seconds acme_http_router_request_seconds=1.15429
|
||||
openmetric,_type=summary,method=POST,path=/api/v2,quantile=0.99,unit=seconds acme_http_router_request_seconds=3698.48132
|
||||
openmetric,_type=gauge go_goroutines=69
|
||||
openmetric,_type=counter,unit=seconds process_cpu_seconds=4200722.46
|
23
plugins/parsers/openmetrics/testcases/multiple/input.txt
Normal file
23
plugins/parsers/openmetrics/testcases/multiple/input.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
# TYPE acme_http_router_request_seconds summary
|
||||
# UNIT acme_http_router_request_seconds seconds
|
||||
# HELP acme_http_router_request_seconds Latency though all of ACME's HTTP request router.
|
||||
acme_http_router_request_seconds_sum{path="/api/v1",method="GET"} 9036.32
|
||||
acme_http_router_request_seconds_count{path="/api/v1",method="GET"} 807283.0
|
||||
acme_http_router_request_seconds{path="/api/v1",method="GET",quantile="0.5"} 1.29854
|
||||
acme_http_router_request_seconds{path="/api/v1",method="GET",quantile="0.9"} 54.85479
|
||||
acme_http_router_request_seconds{path="/api/v1",method="GET",quantile="0.99"} 6884.32324
|
||||
acme_http_router_request_seconds_created{path="/api/v1",method="GET"} 1605281325.0
|
||||
acme_http_router_request_seconds_sum{path="/api/v2",method="POST"} 479.3
|
||||
acme_http_router_request_seconds_count{path="/api/v2",method="POST"} 34.0
|
||||
acme_http_router_request_seconds_created{path="/api/v2",method="POST"} 1605281325.0
|
||||
acme_http_router_request_seconds{path="/api/v2",method="POST",quantile="0.5"} 0.85412
|
||||
acme_http_router_request_seconds{path="/api/v2",method="POST",quantile="0.9"} 1.15429
|
||||
acme_http_router_request_seconds{path="/api/v2",method="POST",quantile="0.99"} 3698.48132
|
||||
# TYPE go_goroutines gauge
|
||||
# HELP go_goroutines Number of goroutines that currently exist.
|
||||
go_goroutines 69
|
||||
# TYPE process_cpu_seconds counter
|
||||
# UNIT process_cpu_seconds seconds
|
||||
# HELP process_cpu_seconds Total user and system CPU time spent in seconds.
|
||||
process_cpu_seconds_total 4.20072246e+06
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
process_start_time_seconds,_type=gauge gauge=1606393397
|
||||
dovecot_build,revision=38ecc424a,version=2.4.devel info=1u
|
||||
dovecot_auth_success,_type=counter counter=892
|
||||
dovecot_auth_success_duration_seconds,_type=counter counter=0.085479
|
||||
dovecot_imap_command,_type=counter,cmd_name=LIST counter=423
|
||||
dovecot_imap_command,_type=counter,cmd_name=LIST,tagged_reply_state=OK counter=423
|
||||
dovecot_imap_command,_type=counter,cmd_name=STATUS counter=468
|
||||
dovecot_imap_command,_type=counter,cmd_name=STATUS,tagged_reply_state=OK counter=468
|
||||
dovecot_imap_command,_type=counter,cmd_name=SELECT counter=890
|
||||
dovecot_imap_command,_type=counter,cmd_name=SELECT,tagged_reply_state=OK counter=890
|
||||
dovecot_imap_command,_type=counter,cmd_name=APPEND counter=449
|
||||
dovecot_imap_command,_type=counter,cmd_name=APPEND,tagged_reply_state=OK counter=449
|
||||
dovecot_imap_command,_type=counter,cmd_name=LOGOUT counter=892
|
||||
dovecot_imap_command,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK counter=892
|
||||
dovecot_imap_command,_type=counter,cmd_name=UID\ FETCH counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=FETCH counter=2148
|
||||
dovecot_imap_command,_type=counter,cmd_name=FETCH,tagged_reply_state=OK counter=2148
|
||||
dovecot_imap_command,_type=counter,cmd_name=STORE counter=794
|
||||
dovecot_imap_command,_type=counter,cmd_name=STORE,tagged_reply_state=OK counter=794
|
||||
dovecot_imap_command,_type=counter,cmd_name=EXPUNGE counter=888
|
||||
dovecot_imap_command,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK counter=888
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LIST counter=0.099115
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LIST,tagged_reply_state=OK counter=0.099115
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STATUS counter=0.161195
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STATUS,tagged_reply_state=OK counter=0.161195
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=SELECT counter=0.184907
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=SELECT,tagged_reply_state=OK counter=0.184907
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=APPEND counter=0.273893
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=APPEND,tagged_reply_state=OK counter=0.273893
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LOGOUT counter=0.033494
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK counter=0.033494
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=UID\ FETCH counter=0.181319
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK counter=0.181319
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=FETCH counter=1.169456
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=FETCH,tagged_reply_state=OK counter=1.169456
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STORE counter=0.368621
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=STORE,tagged_reply_state=OK counter=0.368621
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=EXPUNGE counter=0.247657
|
||||
dovecot_imap_command_duration_seconds,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK counter=0.247657
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=LHLO,status_code=250 +Inf=1,10=0,100=1,1000=1,10000=1,100000=1,count=1,sum=0.00002
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=MAIL,status_code=250 +Inf=1,10=0,100=1,1000=1,10000=1,100000=1,count=1,sum=0.000021
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=RCPT,status_code=250 +Inf=1,10=0,100=0,1000=1,10000=1,100000=1,count=1,sum=0.000195
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=DATA,status_code=250 +Inf=1,10=0,100=0,1000=0,10000=1,100000=1,count=1,sum=0.001249
|
||||
dovecot_smtp_command,_type=histogram,cmd_name=QUIT,status_code=221 +Inf=1,10=1,100=1,1000=1,10000=1,100000=1,count=1,sum=0.00001
|
||||
dovecot_mail_delivery,_type=histogram +Inf=1,10=0,100=0,1000=1,10000=1,100000=1,count=1,sum=0.000656
|
|
@ -0,0 +1,82 @@
|
|||
openmetric,_type=gauge process_start_time_seconds=1606393397
|
||||
openmetric,_type=untyped,version=2.4.devel,revision=38ecc424a dovecot_build_info=1u
|
||||
openmetric,_type=counter dovecot_auth_success=892
|
||||
openmetric,_type=counter dovecot_auth_success_duration_seconds=0.085479
|
||||
openmetric,_type=counter,cmd_name=LIST dovecot_imap_command=423
|
||||
openmetric,_type=counter,cmd_name=LIST,tagged_reply_state=OK dovecot_imap_command=423
|
||||
openmetric,_type=counter,cmd_name=STATUS dovecot_imap_command=468
|
||||
openmetric,_type=counter,cmd_name=STATUS,tagged_reply_state=OK dovecot_imap_command=468
|
||||
openmetric,_type=counter,cmd_name=SELECT dovecot_imap_command=890
|
||||
openmetric,_type=counter,cmd_name=SELECT,tagged_reply_state=OK dovecot_imap_command=890
|
||||
openmetric,_type=counter,cmd_name=APPEND dovecot_imap_command=449
|
||||
openmetric,_type=counter,cmd_name=APPEND,tagged_reply_state=OK dovecot_imap_command=449
|
||||
openmetric,_type=counter,cmd_name=LOGOUT dovecot_imap_command=892
|
||||
openmetric,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK dovecot_imap_command=892
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=FETCH dovecot_imap_command=2148
|
||||
openmetric,_type=counter,cmd_name=FETCH,tagged_reply_state=OK dovecot_imap_command=2148
|
||||
openmetric,_type=counter,cmd_name=STORE dovecot_imap_command=794
|
||||
openmetric,_type=counter,cmd_name=STORE,tagged_reply_state=OK dovecot_imap_command=794
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK dovecot_imap_command=888
|
||||
openmetric,_type=counter,cmd_name=LIST dovecot_imap_command_duration_seconds=0.099115
|
||||
openmetric,_type=counter,cmd_name=LIST,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.099115
|
||||
openmetric,_type=counter,cmd_name=STATUS dovecot_imap_command_duration_seconds=0.161195
|
||||
openmetric,_type=counter,cmd_name=STATUS,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.161195
|
||||
openmetric,_type=counter,cmd_name=SELECT dovecot_imap_command_duration_seconds=0.184907
|
||||
openmetric,_type=counter,cmd_name=SELECT,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.184907
|
||||
openmetric,_type=counter,cmd_name=APPEND dovecot_imap_command_duration_seconds=0.273893
|
||||
openmetric,_type=counter,cmd_name=APPEND,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.273893
|
||||
openmetric,_type=counter,cmd_name=LOGOUT dovecot_imap_command_duration_seconds=0.033494
|
||||
openmetric,_type=counter,cmd_name=LOGOUT,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.033494
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH dovecot_imap_command_duration_seconds=0.181319
|
||||
openmetric,_type=counter,cmd_name=UID\ FETCH,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.181319
|
||||
openmetric,_type=counter,cmd_name=FETCH dovecot_imap_command_duration_seconds=1.169456
|
||||
openmetric,_type=counter,cmd_name=FETCH,tagged_reply_state=OK dovecot_imap_command_duration_seconds=1.169456
|
||||
openmetric,_type=counter,cmd_name=STORE dovecot_imap_command_duration_seconds=0.368621
|
||||
openmetric,_type=counter,cmd_name=STORE,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.368621
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE dovecot_imap_command_duration_seconds=0.247657
|
||||
openmetric,_type=counter,cmd_name=EXPUNGE,tagged_reply_state=OK dovecot_imap_command_duration_seconds=0.247657
|
||||
openmetric,_type=histogram,cmd_name=LHLO,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.00002
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=100,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=LHLO,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.000021
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=100,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=MAIL,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.000195
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=100,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=1000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=RCPT,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,status_code=250 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.001249
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=10,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=100,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=1000,status_code=250 dovecot_smtp_command_bucket=0
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=10000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=100000,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=DATA,le=+Inf,status_code=250 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,status_code=221 dovecot_smtp_command_count=1,dovecot_smtp_command_sum=0.00001
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=10,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=100,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=1000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=10000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=100000,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram,cmd_name=QUIT,le=+Inf,status_code=221 dovecot_smtp_command_bucket=1
|
||||
openmetric,_type=histogram dovecot_mail_delivery_count=1,dovecot_mail_delivery_sum=0.000656
|
||||
openmetric,_type=histogram,le=10 dovecot_mail_delivery_bucket=0
|
||||
openmetric,_type=histogram,le=100 dovecot_mail_delivery_bucket=0
|
||||
openmetric,_type=histogram,le=1000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=10000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=100000 dovecot_mail_delivery_bucket=1
|
||||
openmetric,_type=histogram,le=+Inf dovecot_mail_delivery_bucket=1
|
BIN
plugins/parsers/openmetrics/testcases/protobuf/input.bin
Normal file
BIN
plugins/parsers/openmetrics/testcases/protobuf/input.bin
Normal file
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.bin"]
|
||||
data_format = "openmetrics"
|
||||
|
||||
[inputs.test.additional_params]
|
||||
headers = {Content-Type = "application/openmetrics-protobuf;version=1.0.0"}
|
|
@ -0,0 +1 @@
|
|||
device_versioning,_type=untyped,location=office,device=machine,version=1.29.2,environment=production,build=42 info=1u
|
|
@ -0,0 +1 @@
|
|||
openmetric,_type=untyped,location=office,device=machine,version=1.29.2,environment=production,build=42 device_versioning_info=1u
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
‘
|
||||
device_versioning"A test info metric*f
|
||||
|
||||
locationoffice
|
||||
|
||||
devicemachine=2;
|
||||
|
||||
version1.29.2
|
||||
|
||||
environment
|
||||
production
|
||||
|
||||
build42
|
|
@ -0,0 +1,6 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.bin"]
|
||||
data_format = "openmetrics"
|
||||
|
||||
[inputs.test.additional_params]
|
||||
headers = {Content-Type = "application/openmetrics-protobuf;version=1.0.0"}
|
|
@ -0,0 +1 @@
|
|||
get_token_fail_count,_type=counter counter=8
|
|
@ -0,0 +1 @@
|
|||
openmetric,_type=counter get_token_fail_count=8
|
|
@ -0,0 +1,4 @@
|
|||
# TYPE get_token_fail_count counter
|
||||
# HELP get_token_fail_count help
|
||||
get_token_fail_count_total 8 123 # {a="b"} 0.5
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
go_memstats_gc_cpu_fraction,_type=gauge gauge=-0.00014404354379774563
|
||||
go_memstats_gc_sys_bytes,_type=gauge gauge=60936192
|
||||
go_memstats_heap_alloc_bytes,_type=gauge gauge=1581062048
|
|
@ -0,0 +1,3 @@
|
|||
openmetric,_type=gauge go_memstats_gc_cpu_fraction=-0.00014404354379774563
|
||||
openmetric,_type=gauge go_memstats_gc_sys_bytes=60936192
|
||||
openmetric,_type=gauge go_memstats_heap_alloc_bytes=1581062048
|
10
plugins/parsers/openmetrics/testcases/valid_gauge/input.txt
Normal file
10
plugins/parsers/openmetrics/testcases/valid_gauge/input.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
# HELP go_memstats_gc_cpu_fraction The fraction of this program's available CPU time used by the GC since the program started.
|
||||
# TYPE go_memstats_gc_cpu_fraction gauge
|
||||
go_memstats_gc_cpu_fraction -0.00014404354379774563
|
||||
# HELP go_memstats_gc_sys_bytes Number of bytes used for garbage collection system metadata.
|
||||
# TYPE go_memstats_gc_sys_bytes gauge
|
||||
go_memstats_gc_sys_bytes 6.0936192e+07
|
||||
# HELP go_memstats_heap_alloc_bytes Number of heap bytes allocated and still in use.
|
||||
# TYPE go_memstats_heap_alloc_bytes gauge
|
||||
go_memstats_heap_alloc_bytes 1.581062048e+09
|
||||
# EOF
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
|
@ -0,0 +1 @@
|
|||
apiserver_request_latencies_microseconds,_type=histogram,unit=microseconds,resource=bindings,verb=POST +Inf=2025,125000=1994,1e+06=2005,250000=1997,2e+06=2012,4e+06=2017,500000=2000,8e+06=2024,count=2025,sum=102726334
|
|
@ -0,0 +1,9 @@
|
|||
openmetric,_type=histogram,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_count=2025,apiserver_request_latencies_microseconds_sum=102726334
|
||||
openmetric,_type=histogram,le=125000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=1994
|
||||
openmetric,_type=histogram,le=250000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=1997
|
||||
openmetric,_type=histogram,le=500000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2000
|
||||
openmetric,_type=histogram,le=1e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2005
|
||||
openmetric,_type=histogram,le=2e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2012
|
||||
openmetric,_type=histogram,le=4e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2017
|
||||
openmetric,_type=histogram,le=8e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2024
|
||||
openmetric,_type=histogram,le=+Inf,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2025
|
|
@ -0,0 +1,14 @@
|
|||
# HELP apiserver_request_latencies_microseconds Response latency distribution in microseconds for each verb, resource and client.
|
||||
# TYPE apiserver_request_latencies_microseconds histogram
|
||||
# UNIT apiserver_request_latencies_microseconds microseconds
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="125000"} 1994
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="250000"} 1997
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="500000"} 2000
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="1e+06"} 2005
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="2e+06"} 2012
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="4e+06"} 2017
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="8e+06"} 2024
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="+Inf"} 2025
|
||||
apiserver_request_latencies_microseconds_sum{resource="bindings",verb="POST"} 1.02726334e+08
|
||||
apiserver_request_latencies_microseconds_count{resource="bindings",verb="POST"} 2025
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
|
@ -0,0 +1 @@
|
|||
apiserver_request_latencies_microseconds,_type=histogram,unit=microseconds,resource=bindings,verb=POST +Inf=2025,125000=1994,1e+06=2005,250000=1997,2e+06=2012,4e+06=2017,500000=2000,8e+06=2024,count=2025,sum=102726334
|
|
@ -0,0 +1,9 @@
|
|||
openmetric,_type=histogram,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_count=2025,apiserver_request_latencies_microseconds_sum=102726334
|
||||
openmetric,_type=histogram,le=125000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=1994
|
||||
openmetric,_type=histogram,le=250000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=1997
|
||||
openmetric,_type=histogram,le=500000,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2000
|
||||
openmetric,_type=histogram,le=1e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2005
|
||||
openmetric,_type=histogram,le=2e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2012
|
||||
openmetric,_type=histogram,le=4e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2017
|
||||
openmetric,_type=histogram,le=8e+06,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2024
|
||||
openmetric,_type=histogram,le=+Inf,unit=microseconds,resource=bindings,verb=POST apiserver_request_latencies_microseconds_bucket=2025
|
|
@ -0,0 +1,14 @@
|
|||
# HELP apiserver_request_latencies_microseconds Response latency distribution in microseconds for each verb, resource and client.
|
||||
# TYPE apiserver_request_latencies_microseconds histogram
|
||||
# UNIT apiserver_request_latencies_microseconds microseconds
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="125000"} 1994
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="250000"} 1997
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="500000"} 2000
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="1e+06"} 2005
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="2e+06"} 2012
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="4e+06"} 2017
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="8e+06"} 2024
|
||||
apiserver_request_latencies_microseconds_bucket{resource="bindings",verb="POST",le="+Inf"} 2025
|
||||
apiserver_request_latencies_microseconds_sum{resource="bindings",verb="POST"} 1.02726334e+08
|
||||
apiserver_request_latencies_microseconds_count{resource="bindings",verb="POST"} 2025
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
|
@ -0,0 +1 @@
|
|||
cadvisor_version,_type=untyped,dockerVersion=1.8.2,kernelVersion=3.10.0-229.20.1.el7.x86_64,osVersion=CentOS\ Linux\ 7\ (Core) info=1u
|
|
@ -0,0 +1 @@
|
|||
openmetric,_type=untyped,dockerVersion=1.8.2,kernelVersion=3.10.0-229.20.1.el7.x86_64,osVersion=CentOS\ Linux\ 7\ (Core) cadvisor_version_info=1u
|
|
@ -0,0 +1,4 @@
|
|||
# HELP cadvisor_version A metric with a constant '1' value labeled by kernel version, OS version, docker version, cadvisor version & cadvisor revision.
|
||||
# TYPE cadvisor_version info
|
||||
cadvisor_version{cadvisorRevision="",cadvisorVersion="",dockerVersion="1.8.2",kernelVersion="3.10.0-229.20.1.el7.x86_64",osVersion="CentOS Linux 7 (Core)"} 1
|
||||
# EOF
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
|
@ -0,0 +1,2 @@
|
|||
alarm_system_state,_type=untyped,entity=ground\ floor door_ok=true,window_1_ok=true,window_2_ok=false
|
||||
alarm_system_state,_type=untyped,entity=basement window_1_ok=true,window_2_ok=true,window_3_ok=true
|
|
@ -0,0 +1,6 @@
|
|||
openmetric,_type=untyped,entity=ground\ floor alarm_system_state_door_ok=true
|
||||
openmetric,_type=untyped,entity=ground\ floor alarm_system_state_window_1_ok=true
|
||||
openmetric,_type=untyped,entity=ground\ floor alarm_system_state_window_2_ok=false
|
||||
openmetric,_type=untyped,entity=basement alarm_system_state_window_1_ok=true
|
||||
openmetric,_type=untyped,entity=basement alarm_system_state_window_2_ok=true
|
||||
openmetric,_type=untyped,entity=basement alarm_system_state_window_3_ok=true
|
|
@ -0,0 +1,8 @@
|
|||
# TYPE alarm_system_state stateset
|
||||
alarm_system_state{entity="ground floor",alarm_system_state="door ok"} 1.0
|
||||
alarm_system_state{entity="ground floor",alarm_system_state="window 1 ok"} 1.0
|
||||
alarm_system_state{entity="ground floor",alarm_system_state="window 2 ok"} 0.0
|
||||
alarm_system_state{entity="basement",alarm_system_state="window 1 ok"} 1.0
|
||||
alarm_system_state{entity="basement",alarm_system_state="window 2 ok"} 1.0
|
||||
alarm_system_state{entity="basement",alarm_system_state="window 3 ok"} 1.0
|
||||
# EOF
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
|
@ -0,0 +1 @@
|
|||
http_request_duration_microseconds,_type=summary,unit=microseconds,handler=prometheus 0.5=552048.506,0.9=5876804.288,0.99=5876804.288,count=9,sum=18909097.205,created=1705509488.3
|
|
@ -0,0 +1,4 @@
|
|||
openmetric,_type=summary,unit=microseconds,handler=prometheus http_request_duration_microseconds_count=9,http_request_duration_microseconds_sum=18909097.205,http_request_duration_microseconds_created=2005509488
|
||||
openmetric,_type=summary,unit=microseconds,handler=prometheus,quantile=0.5 http_request_duration_microseconds=552048.506
|
||||
openmetric,_type=summary,unit=microseconds,handler=prometheus,quantile=0.9 http_request_duration_microseconds=5876804.288
|
||||
openmetric,_type=summary,unit=microseconds,handler=prometheus,quantile=0.99 http_request_duration_microseconds=5876804.288
|
|
@ -0,0 +1,10 @@
|
|||
# TYPE http_request_duration_microseconds summary
|
||||
# UNIT http_request_duration_microseconds microseconds
|
||||
# HELP http_request_duration_microseconds The HTTP request latencies in microseconds.
|
||||
http_request_duration_microseconds{handler="prometheus",quantile="0.5"} 552048.506
|
||||
http_request_duration_microseconds{handler="prometheus",quantile="0.9"} 5.876804288e+06
|
||||
http_request_duration_microseconds{handler="prometheus",quantile="0.99"} 5.876804288e+06
|
||||
http_request_duration_microseconds_created{handler="prometheus"} 1705509488.3
|
||||
http_request_duration_microseconds_sum{handler="prometheus"} 1.8909097205e+07
|
||||
http_request_duration_microseconds_count{handler="prometheus"} 9
|
||||
# EOF
|
|
@ -0,0 +1,3 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
|
@ -0,0 +1,2 @@
|
|||
redis_connected_clients,_type=untyped,instance=rough-snowflake-web,port=6380 value=10.0
|
||||
redis_connected_clients,_type=untyped,instance=rough-snowflake-web,port=6381 value=12.0
|
|
@ -0,0 +1,2 @@
|
|||
openmetric,_type=untyped,instance=rough-snowflake-web,port=6380 redis_connected_clients=10.0
|
||||
openmetric,_type=untyped,instance=rough-snowflake-web,port=6381 redis_connected_clients=12.0
|
|
@ -0,0 +1,5 @@
|
|||
# HELP redis_connected_clients Redis connected clients
|
||||
# TYPE redis_connected_clients unknown
|
||||
redis_connected_clients{instance="rough-snowflake-web",port="6380"} 10.0
|
||||
redis_connected_clients{instance="rough-snowflake-web",port="6381"} 12.0
|
||||
# EOF
|
|
@ -0,0 +1,4 @@
|
|||
[[inputs.test]]
|
||||
files = ["input.txt"]
|
||||
data_format = "openmetrics"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue