在grafana单统计中使用来自influxdb的时间字段 [英] Use time field from influxdb in grafana single stat

查看:290
本文介绍了在grafana单统计中使用来自influxdb的时间字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在grafana的单个状态面板中使用time字段?

Is it possible to use the time field in a single stat panel in grafana?

我了解您不仅可以查询influxdb中的时间字段,而且还可以像这样获取我感兴趣的统计信息的时间:

I understand you cannot only query the time field in influxdb, but I can get the time of the stat I'm interested in like so:

select time, last(context_id) from "data_context"

,只需要一种方法即可从查询的执行中显示time字段.

And just need a way to show the time field from the execution of the query.

推荐答案

在堆栈溢出时经常会问到这很安静,但目前无法实现.但是在github上有针对此功能的开放功能请求:

This is quiet often asked on stack overflow, but it is not possible at the moment. But there are open Feature requests for this on github:

  • [Feature request] Show timestamp on SingleStat #6710
  • Showing time from InfluxDB query in Singlestat panel #2764

这篇关于在grafana单统计中使用来自influxdb的时间字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆