【问题标题】:integrate and time period in Grafana/Prometheus/VictoriaMetricsGrafana/Prometheus/VictoriaMetrics 中的集成和时间段
【发布时间】:2020-07-27 22:47:41
【问题描述】:

我正在尝试使用 Prometheus 中的集成功能,使用功能 victoria_metrics 通过功能 Grafana(位于页面右上角)来控制时间段。但是这种控制不起作用。要计算总流量(总字节),我必须使用变量“间隔”:5m、15m、30m、1h、3h、6h ... 1 天、2 天、一周等来显示信息关于所需时间段的流量的仪表板。

因此,我必须使用 Grafana 中的时间段选择来设置所需的时间段,例如:07/20/2020 - 07/26/2020(7 天),另外我正在使用我的变量:7 天。

好尴尬..怎么只用Grafana接口?这适用于带宽图。

我的查询:

integrate(outbound{location="city1"}[$timeframe])/8/(1024^3)

原始数据以 gbit/sec 为单位。网络接口的带宽度量与查询一起使用

outbound{location="city1"}

【问题讨论】:

    标签: prometheus grafana victoriametrics


    【解决方案1】:

    尝试在查询中将[$timeframe] 替换为[$__range]$__range 是一个特殊的 Grafana 变量,等于选定的时间段。详情请见the docs about $__range variable

    【讨论】:

      猜你喜欢
      • 2021-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多