简体   繁体   English

在Prometheus中删除标签

[英]Deleting labels in Prometheus

I'm using Prometheus to do some monitoring but I can't seem to find a way to delete labels I no longer want. 我正在使用Prometheus进行一些监视,但是似乎找不到删除我不再想要的标签的方法。 I tried using the DELETE /api/v1/series endpoint but it doesn't remove it from the dropdown list on the main Prometheus Graph page. 我尝试使用DELETE /api/v1/series端点,但是它并未将其从Prometheus Graph主页上的下拉列表中删除。 Is there a way to remove them from the dropdown without restarting from scratch? 有没有办法从下拉列表中删除它们而无需从头开始重新启动?

Thanks 谢谢

This happens to me also, try to include the metric name when querying for labels' values like this: 我也遇到这种情况,请在查询标签值时尝试包括指标名称,如下所示:

    label_values(node_load1, instance)

ref: http://docs.grafana.org/features/datasources/prometheus/ 参考: http : //docs.grafana.org/features/datasources/prometheus/

If you delete every relevant timeseries then it should no longer be returned. 如果删除每个相关时间序列,则不应再返回它。 If this is not the case, please file a bug. 如果不是这种情况,请提交错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM