How to pull metrics collected by Prometheus to Telegraph?


How can Telegraph collect metrics collected by Prometheus TSDB?
Is it using remote_write (Prometheus remote streaming data to Telegraph) or remote_read (Telegraph querying Prometheus) or a federation API kind of plugin?


If you have a prometheus endpoint (e.g. /metrics), then most users will use the prometheus input plugin to scrape that page for metrics. For TSDB this is not what you want.

If you have instead a server that can push metrics, then yes the http_listener_v2 + prometheus remote write parser would be best. I believe in TSDB this is called streaming.

1 Like