how to use remote_read config "name" to distinguish multiple remote_read url configs?

43 views
Skip to first unread message

Shubing Zheng

unread,
Dec 30, 2021, 9:04:22 PM12/30/21
to Prometheus Users
Hi Everyone,

My Prometheus have multiple remote_read urls to collect metrics, and the metrics collected from them might have same label name and value. How can I distinguish metrics between remote read configs?

CONFIGURATION doc mean I can use remote_read name config, but didn't show how.


Brian Candler

unread,
Dec 31, 2021, 6:22:32 AM12/31/21
to Prometheus Users
What are you reading from?  If they are remote prometheus instances then you can set external_labels on those systems to ensure the timeseries are distinct.

Note that remote_read config does not "collect" metrics; it just gives remote servers to forward queries to. In order to collect metrics and store them locally you need to define scrape jobs, and you can apply extra labels there using relabel_configs.
Reply all
Reply to author
Forward
0 new messages