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
版权声明:本文标题:prometheus - Drop labels of a metric not entire job - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745557458a2155959.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论