INFO-Prometheus的API调用示例
更新时间: 2025-08-22 15:03:35
阅读 151
INFO-Prometheus的API调用示例
使用场景
示范一下n9e查询Prometheus的语句,在Prometheus API如何调用使用示例
具体操作步骤: 1.sum by (host_name) (up{job="host"})
2. 在Prometheus所在节点,用API调用

3.更多API操作见Prometheus官网:
https://prometheus.io/docs/prometheus/latest/querying/api/
作者:刘家有
文档反馈
以上内容对您是否有帮助?