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.73k stars 1.41k forks source link

夜莺不兼容导入的Grafana面板中出现正则 #2053

Closed aapelismith closed 1 month ago

aapelismith commented 3 months ago

Question and Steps to reproduce

如下图所示, 夜莺不兼容变量定义中出现正则而Grafana中是兼容的

image

查询会变成下面的内容 image

Relevant logs and configurations

暂无

Version

v7.0.0-beta.14

jsers commented 3 months ago

这里是两个问题

  1. metrics 目前确实是不支持正则匹配,下个版本我们支持下
  2. 第二个截图 query: last_over_time() 这个显然不是 metrics 查询,这是 label values 的查询然后这里数据源里选择了 vm 则会通过 last_over_time 去查询 label values,目前我看 grafana 也是不支持 label values 的 metric 是正则的方式