- Support two output formats: JSON, Prometheus
- Support
/metrics endpoint for Prometheus
Requirements:
- Accept argument for format:
-format=JSON or -format=Prometheus, case insensitive,
- Use prometheus libraries below to simplify http server setup etc.
github.com/prometheus/client_golang/prometheus
github.com/prometheus/client_golang/prometheus/promauto
github.com/prometheus/client_golang/prometheus/promhttp