bug-mailfromd
[Bug-mailfromd] exporting metrics with declaration
currently I am having such things on the output[1]. I am not sure if the spf 0 and connect 0 should be offered when there are others that are using labels. When I look at other metrics nobody is having the plain one next to the one with labels.
If I run such query
mailfromd_reject{instance="testserver"}
It also always shows this 0 series in graphs and you have to specifically try and remove it. Maybe a fix for this could be:
- do not export metrics that are only declared
- offer an option to initialize / set zero to a metric
eg. this could also be used to to set to 0 such metric
haproxy_frontend_connections_total{proxy="grafana"} 0
[1]
# HELP spf Spf registrations
# TYPE spf counter
spf 0
spf{type="neutral"} 29
spf{type="softfail"} 2
spf{type="valid"} 37
# HELP connect Hostname found in the connect database
# TYPE connect counter
connect 0
connect{type="db"} 1