admin管理员组

文章数量:1022981

I am new to Prometheus and relabeling. I am working with a job 'A' which has a lot of metrics and one of these metrics 'B' has 150 labels. Of these 150 labels I only want to keep 3 (D,E,F) and drop the rest. But I want to make sure that my relabeling rule only affects this one metric series 'B' and not the entire job.

How can I achieve this?

I tried drop and labeldrop but they affect the whole series or job.

I am new to Prometheus and relabeling. I am working with a job 'A' which has a lot of metrics and one of these metrics 'B' has 150 labels. Of these 150 labels I only want to keep 3 (D,E,F) and drop the rest. But I want to make sure that my relabeling rule only affects this one metric series 'B' and not the entire job.

How can I achieve this?

I tried drop and labeldrop but they affect the whole series or job.

本文标签: prometheusDrop labels of a metric not entire jobStack Overflow