【问题标题】:Prometheus DB get Api call, how can I get data for last 15 mins?Prometheus DB 获取 Api 调用,如何获取最近 15 分钟的数据?
【发布时间】:2018-11-23 09:49:11
【问题描述】:

Prometheus DB 获取 Api 调用,如何获取 las 15 分钟的数据?

我可以获取名称结束实例的数据

for example
query=netdata_redis_bgsave_health_status_average{instance='ny-r-user2'}

但是我怎样才能获得范围或最后几分钟的数据

query=up&start=2018-11-23T09:10:30.781Z&end=2015-11-23T09:12:00.781Z&step=15s'

【问题讨论】:

    标签: node.js prometheus


    【解决方案1】:

    此行在最后 15 分钟,步骤 10 秒内返回 .json

    http:/localhost:9090/api/query?query=名称[15m]

    【讨论】:

      猜你喜欢
      • 2012-03-16
      • 2022-01-11
      • 2023-04-08
      • 2016-01-01
      • 2021-12-12
      • 1970-01-01
      • 2021-12-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多