Prometheus metric syntax
From wikinotes
Syntax used to expose metrics to prometheus.
Documentation
Comments
In addition to regular comments, doc-comments exist for
HELP
describing metricsTYPE
describing metric type# regular comment // possibly invalid? # HELP metric_name Does thing // description of metric # TYPE metric_name counter // counter, gauge, historgram
Metrics
my_metric 1.2 my_metric{hostname="foobar", user="baz"} 1.2