Skip to content

Commit

Permalink
Fix incorrect datasource (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir authored Dec 13, 2024
1 parent cbafe4f commit a86afe4
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions src/grafana_dashboards/GPU.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -114,7 +114,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_GPU_TEMP{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"}",
Expand All @@ -126,7 +126,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(node_hwmon_temp_celsius{instance=~\"^$instance.*\", chip=~\"$amd_gpu\"} * on(chip) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}, \"gpu\", \"$1\", \"card\", \"card([0-9]+)\")\n",
Expand All @@ -144,7 +144,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -198,7 +198,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "avg(DCGM_FI_DEV_GPU_TEMP{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"})",
Expand All @@ -210,7 +210,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "avg(node_hwmon_temp_celsius{instance=~\"^$instance.*\", chip=~\"$amd_gpu\"})",
Expand All @@ -226,7 +226,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -309,7 +309,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_POWER_USAGE{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"}",
Expand All @@ -321,7 +321,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(node_hwmon_power_average_watt{agent_hostname=~\"$instance\", chip=~\"$amd_gpu\"} * on(chip) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}, \"gpu\", \"$1\", \"card\", \"card([0-9]+)\")",
Expand All @@ -337,7 +337,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -405,7 +405,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"})",
Expand All @@ -418,7 +418,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"exemplar": false,
Expand Down Expand Up @@ -447,7 +447,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -532,7 +532,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_GPU_UTIL{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"}",
Expand All @@ -544,7 +544,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(node_drm_gpu_busy_percent{instance=~\"^$instance.*\"} * on(card) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}, \"gpu\", \"$1\", \"card\", \"card([0-9]+)\")\n",
Expand All @@ -560,7 +560,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -645,7 +645,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_FAN_SPEED{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"}",
Expand All @@ -657,7 +657,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(\n (\n node_hwmon_fan_rpm{instance=~\"^$instance.*\", chip=~\"$amd_gpu\"} * on(chip) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}\n ) /\n (\n node_hwmon_fan_max_rpm{instance=~\"^$instance.*\", chip=~\"$amd_gpu\"} * on(chip) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}\n ) * 100,\n \"gpu\", \"$1\", \"card\", \"card([0-9]+)\"\n)",
Expand All @@ -673,7 +673,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -757,7 +757,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_MEM_CLOCK{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"} * 1000000",
Expand All @@ -771,7 +771,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(node_hwmon_freq_freq_mhz{agent_hostname=~\"^$instance.*\", chip=~\"$amd_gpu\", sensor=\"sclk\"} * on(chip) group_right() node_drm_card_info{chip=~\"$amd_gpu\"} * 1000000, \"gpu\", \"$1\", \"card\", \"card([0-9]+)\")",
Expand All @@ -787,7 +787,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -872,7 +872,7 @@
"targets": [
{
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "DCGM_FI_DEV_MEM_COPY_UTIL{Hostname=~\"$instance\", gpu=~\"$nvidia_gpu\"}",
Expand All @@ -884,7 +884,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "$datasource"
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "label_replace(\n (\n node_drm_memory_vram_used_bytes{instance=~\"^$instance.*\"} * on(card) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}\n ) \n / \n (\n node_drm_memory_vram_size_bytes{instance=~\"^$instance.*\"} * on(card) group_right() node_drm_card_info{chip=~\"$amd_gpu\"}\n ) * 100,\n \"gpu\", \"$1\", \"card\", \"card([0-9]+)\"\n)",
Expand Down Expand Up @@ -933,7 +933,7 @@
]
},
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"definition": "label_values(node_hwmon_chip_names,agent_hostname)",
"hide": 0,
Expand Down Expand Up @@ -966,7 +966,7 @@
]
},
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"definition": "label_values(DCGM_FI_DEV_GPU_TEMP, gpu)",
"hide": 2,
Expand Down Expand Up @@ -996,7 +996,7 @@
]
},
"datasource": {
"uid": "$datasource"
"uid": "${prometheusds}"
},
"definition": "label_values(node_drm_card_info,chip)",
"hide": 2,
Expand Down

0 comments on commit a86afe4

Please sign in to comment.