Dovecot metrics: text format parsing error in line 5: unknown metric type "info"
djdejawu opened this issue · comments
djdejawu commented
I've got Dovecot: 2.3.17 (e2aa53df5b)
dovecot.conf
service stats {
inet_listener http {
address = *
port = 9900
}
}
metric auth_success {
filter = event=auth_request_finished AND success=yes
}
metric auth_failures {
filter = event=auth_request_finished AND NOT success=yes
}
metric imap_command {
filter = event=imap_command_finished
group_by = cmd_name tagged_reply_state
}
metric smtp_command {
filter = event=smtp_server_command_finished
group_by = cmd_name status_code duration:exponential:1:5:10
}
metric mail_delivery {
filter = event=mail_delivery_finished
group_by = duration:exponential:1:5:10
}
when I try to push metrics from dovecot to pushgateway got this error
text format parsing error in line 5: unknown metric type "info"
curl -s localhost:9900/metrics
# HELP process_start_time_seconds Timestamp of service start
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1655823811
# HELP dovecot_build Dovecot build information
# TYPE dovecot_build info
dovecot_build_info{version="2.3.17",revision="e2aa53df5b"} 1
# HELP dovecot_auth_success Total number of all events of this kind
# TYPE dovecot_auth_success counter
dovecot_auth_success_total 8886
# 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 384.329590
# HELP dovecot_auth_failures Total number of all events of this kind
# TYPE dovecot_auth_failures counter
dovecot_auth_failures_total 0
# HELP dovecot_auth_failures_duration_seconds Total duration of all events of this kind
# TYPE dovecot_auth_failures_duration_seconds counter
dovecot_auth_failures_duration_seconds_total 0.000000
# HELP dovecot_imap_command Total number of all events of this kind
# TYPE dovecot_imap_command counter
dovecot_imap_command_total{cmd_name="LIST"} 10885
dovecot_imap_command_total{cmd_name="LIST",tagged_reply_state="OK"} 10885
dovecot_imap_command_total{cmd_name="LOGOUT"} 20
dovecot_imap_command_total{cmd_name="LOGOUT",tagged_reply_state="OK"} 20
dovecot_imap_command_total{cmd_name="NOOP"} 8864
dovecot_imap_command_total{cmd_name="NOOP",tagged_reply_state="OK"} 8864
dovecot_imap_command_count 19769
# 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"} 2.835521
dovecot_imap_command_duration_seconds_total{cmd_name="LIST",tagged_reply_state="OK"} 2.835521
dovecot_imap_command_duration_seconds_total{cmd_name="LOGOUT"} 0.003483
dovecot_imap_command_duration_seconds_total{cmd_name="LOGOUT",tagged_reply_state="OK"} 0.003483
dovecot_imap_command_duration_seconds_total{cmd_name="NOOP"} 0.078598
dovecot_imap_command_duration_seconds_total{cmd_name="NOOP",tagged_reply_state="OK"} 0.078598
dovecot_imap_command_duration_seconds_sum 2.917602
# HELP dovecot_smtp_command Histogram
# TYPE dovecot_smtp_command histogram
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.000010"} 0
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.000100"} 771
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.001000"} 782
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.010000"} 782
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="LHLO",status_code="250",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="LHLO",status_code="250"} 0.018181
dovecot_smtp_command_count{cmd_name="LHLO",status_code="250"} 782
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.000010"} 0
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.000100"} 780
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.001000"} 782
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.010000"} 782
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="MAIL",status_code="250",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="MAIL",status_code="250"} 0.016008
dovecot_smtp_command_count{cmd_name="MAIL",status_code="250"} 782
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="0.000010"} 0
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="0.000100"} 0
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="0.001000"} 0
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="0.010000"} 754
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="RCPT",status_code="550",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="RCPT",status_code="550"} 4.404203
dovecot_smtp_command_count{cmd_name="RCPT",status_code="550"} 782
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="0.000010"} 513
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="0.000100"} 778
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="0.001000"} 782
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="0.010000"} 782
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="DATA",status_code="503",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="DATA",status_code="503"} 0.009626
dovecot_smtp_command_count{cmd_name="DATA",status_code="503"} 782
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="0.000010"} 0
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="0.000100"} 775
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="0.001000"} 782
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="0.010000"} 782
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="RSET",status_code="250",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="RSET",status_code="250"} 0.020375
dovecot_smtp_command_count{cmd_name="RSET",status_code="250"} 782
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.000010"} 742
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.000100"} 782
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.001000"} 782
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.010000"} 782
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="0.100000"} 782
dovecot_smtp_command_bucket{cmd_name="QUIT",status_code="221",le="+Inf"} 782
dovecot_smtp_command_sum{cmd_name="QUIT",status_code="221"} 0.005701
dovecot_smtp_command_count{cmd_name="QUIT",status_code="221"} 782
# HELP dovecot_mail_delivery Histogram
# TYPE dovecot_mail_delivery histogram
dovecot_mail_delivery_bucket{le="0.000010"} 0
dovecot_mail_delivery_bucket{le="0.000100"} 0
dovecot_mail_delivery_bucket{le="0.001000"} 0
dovecot_mail_delivery_bucket{le="0.010000"} 0
dovecot_mail_delivery_bucket{le="0.100000"} 0
dovecot_mail_delivery_bucket{le="+Inf"} 0
# EOF
Björn Rabenstein commented
That's because Dovecot seems to emit OpenMetrics, not the conventional Prometheus text format, while the Pushgateway only understands the latter. Supporting OpenMetrics is tracked in #400 .