我只看到如何使用 'curl -X DELETE http://localhost:9091/metrics/job/some_job/instance/some_instance' 从 pushgateway 中删除,但我想删除包含特定标签值的指标,我该怎么做那?
更新:
我正在使用 python 编写脚本,prometheus 有一个带有函数“delete_from_pushgateway()”的 python 客户端
这可以在以下位置找到:https://github.com/prometheus/client_python
最佳答案
curl -X 删除 http://pushgateway.example.org:9091/metrics/job/some_job/instance/some_instance
curl -X 删除 http://pushgateway.example.org:9091/metrics/job/some_job
关于prometheus - 有没有办法使用度量/标签值从 pushgateway 中删除?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63257221/