telegraf/plugins/outputs/prometheus_client
..
README.md
prometheus_client.go
prometheus_client_test.go

README.md

Prometheus Client Service Output Plugin

This plugin starts a Prometheus Client, listening on a port defined in the configuration file.

It exposes all metrics on /metrics to be polled by a Prometheus server.