HELP and TYPE lines

The two comment lines above each metric on a metrics page: # HELP gives a human description and # TYPE declares counter, gauge, histogram or summary.

In more detail

The type line lets the server know a counter from a gauge; the help text is what a person reads in a dashboard. Keep all samples of one metric together, directly under its help and type lines.

Example

# HELP http_requests_total Requests handled.
# TYPE http_requests_total counter

Related terms

Taught in

References

Certification courses