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

想了解下数据源的状态字段目前是起什么作用 #2250

Open eryajf opened 1 week ago

eryajf commented 1 week ago

Question and Steps to reproduce

我发现我在数据源当中禁用了对应的数据源,但是即时查询当中仍然能够正常使用。

如果这个字段标识了这个数据源的状态,那么是否禁用之后,就不应该再能使用了呢?

我看了下代码,如果印证我的想法,那么可能需要在这里调整:

https://github.com/ccfos/nightingale/blob/04734b894019a6cd0fa348069f5512fea2c6f2e1/center/router/router_datasource.go#L55

Relevant logs and configurations

如上

Version

夜莺版本:v7.6.0 系统:centos-v7 CPU:amd

UlricQin commented 1 week ago

数据源禁用之后,应该是可以看图,不能告警了

eryajf commented 1 week ago

那看起来应该有两个小事项可做: