New Prometheus Source

Scrape prometheus metrics with Vector

We love Prometheus, but we also love options and so we’ve added a prometheus_scrape source to let you send Prometheus format metrics anywhere you like.

This was an important feat for Vector because it required us to mature our metrics data model and tested our interoperability between metrics sources.

To use it simply add the source config and point it towards the hosts you wish to scrape:

[sources.my_source_id]
  type = "prometheus_scrape"
  hosts = ["http://localhost:9090"]
  scrape_interval_secs = 1

For more guidance get on the reference page.

Why?

We believe the most common use cases for this source will be backups and migration, if you have an interesting use case we’d love to hear about it.