mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(grafana): restore datasources and GPU power metric
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
bc0df6a800
commit
e0cb3eab75
2 files changed
+8
-2
No files matched your search
@@ -178,7 +178,7 @@
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"description": "node_hwmon_power_watt / node_hwmon_temp_celsius for the amdgpu chip",
|
||||
"description": "node_hwmon_power_average_watt / node_hwmon_temp_celsius for the amdgpu chip",
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"color": {
|
||||
@@ -242,7 +242,7 @@
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_PROMETHEUS}"
|
||||
},
|
||||
"expr": "node_hwmon_power_watt{host=\"$host\", chip=~\"$chip\"}",
|
||||
"expr": "node_hwmon_power_average_watt{host=\"$host\", chip=~\"$chip\"}",
|
||||
"legendFormat": "power",
|
||||
"refId": "A"
|
||||
},
|
||||
|
||||
@@ -49,6 +49,12 @@
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/tree/master/pkgs/servers/monitoring/grafana/plugins
|
||||
declarativePlugins = with pkgs.grafanaPlugins; [
|
||||
# Grafana 13 moved the built-in Prometheus/Loki datasources out of the
|
||||
# server package; provision them explicitly so existing datasources and
|
||||
# dashboards keep working.
|
||||
prometheus
|
||||
loki
|
||||
|
||||
# https://github.com/VictoriaMetrics/victoriametrics-datasource
|
||||
# supports victoria-metrics's MetricsQL, template, tracing, prettify, etc.
|
||||
victoriametrics-metrics-datasource
|
||||
|
||||
Reference in new issue
Block a user