ccfos / nightingale

An all-in-one observability solution which aims to combine the advantages of Prometheus and Grafana. It manages alert rules and visualizes metrics, logs, traces in a beautiful web UI.
https://flashcat.cloud/docs/
Apache License 2.0
9.42k stars 1.38k forks source link

右上角的时间范围能否被调用? #2009

Closed zhangchi2217 closed 1 month ago

zhangchi2217 commented 1 month ago

Question and Steps to reproduce

获取时间段bytes数据能都调用前端右上角的时间范围?

image

Relevant logs and configurations

snmp_ap_hwWlanApEthportDwTraffic{ip="$ip"}[$__interval]

Version

v7.0.0-beta.1

UlricQin commented 1 month ago

@jsers 帮看看呢

jsers commented 1 month ago

image 可以用 $__range 相关的变量

jicki commented 1 month ago

之前我有个想法.. 就是这个时间范围不能单独作用于一个 Panel ,只能作用于整个 dashboard . 我看 grafana 也不行. 哈哈。不知道能不能实现这个东西。

jsers commented 1 month ago

@jicki Panel 的每个 query 都可以设置单独的时间范围,内置的时间变量也会优先使用 query.time 的时间来解析

jicki commented 1 month ago

@jicki Panel 的每个 query 都可以设置单独的时间范围,内置的时间变量也会优先使用 query.time 的时间来解析

啊~这个怎么设置呀。 比如我想设置 query start_time = 2024-06-27 09:00:00 end_time = 2024-06-27 10:00:00

这种如何可以配置呢

jsers commented 1 month ago

image

jicki commented 1 month ago

啊。原来如此。 太棒了