编写通过命令行终端获取指定时间范围的 Prometheus 查询工具 前言: 当我们有数据查询需求时,可以通过查询 API 请求监控数据。 在公司中调用Prometheus 查询较为频繁,但是有个问题就是 Prometheus 时间戳默认调用的时 UTC (协调世界时)相对国内的时间就需要 -8 小时,所以不是特别方便,并且传统的查询得到的数据也比…
1 Thanos 对接多 Prometheus 常用集群级指标 在下面的这些指标 tenant_id 是由于通过 thanos 作为多 Prometheus 纳管,以方便识别不同集群 Prometheus 1 节点类 1.节点 info sum(node_uname_info) by (nodename,machine,release,versio…