what is the use case of external_labels in promethues.yml

23 views
Skip to first unread message

kiran

unread,
Sep 17, 2020, 12:46:07 AM9/17/20
to Prometheus Users
Hello all

Can anyone guide me on what is the use of external_labels in prometheus.yml file? From the documentation I am assuming it adds a new label for each metric when let's say we remote_write to external storage systems. Is my assumption correct? If so then can this help identify tenants in a multi-tenant setup? 

Brian Candler

unread,
Sep 17, 2020, 3:00:42 AM9/17/20
to Prometheus Users
It adds new labels to each metric for remote_write, alerts, and when exposing data through federation.

However it's a global setting, so it will only help you for a multi-tenant setup if each tenant has their own prometheus instance.

Ben Kochie

unread,
Sep 17, 2020, 9:08:55 AM9/17/20
to kiran, Prometheus Users
In addition to what Brian said a typical use case is also for identifying HA replica pairs.

Systems like Thanos can know about replicas, and provide de-duplication.

On Thu, Sep 17, 2020 at 6:46 AM kiran <kira...@gmail.com> wrote:
Hello all

Can anyone guide me on what is the use of external_labels in prometheus.yml file? From the documentation I am assuming it adds a new label for each metric when let's say we remote_write to external storage systems. Is my assumption correct? If so then can this help identify tenants in a multi-tenant setup? 

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAOnWYZWarEkTqUSwNVH%2BTjMHfVDmU_2v8NxgEJACEQQb%3DEM3Cw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages