Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.34 KB

File metadata and controls

44 lines (35 loc) · 1.34 KB
date 2020-03-31
title New Prometheus Source
description Scrape prometheus metrics with Vector
authors
binarylogic
pr_numbers
1264
release 0.7.0
hide_on_release_notes false
badges
type domains sources
new feature
sources
prometheus
aliases
/blog/prometheus-source

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.