All languages

Go for DevOps

You're viewing a free preview. Sign in free to read every script.

Why this exists Prometheus scrapes metrics from an HTTP endpoint. If a system you care about has no exporter, or you want application level numbers (queue depth, job success, endpoint latency), writing a small exporter…

A Prometheus Exporter in Go: Counters, Gauges, Histograms and Alert Rules

Expose your own metrics for Prometheus: an endpoint prober that publishes up and latency series, an HTTP middleware that counts requests and times them, the metric types and when to use each, label cardinality rules, and a matching alert.

Sign in free to read this script, along with the rest of the library.

Sign in free