Skip to content

Commit b9dc0ea

Browse files
committed
Add instance filtering to Erlang BEAM Grafana dashboard metrics
- Updated metric expressions to include instance filtering with {instance=\"$node\"} for the following metrics: - erlang_vm_statistics_run_queues_length - erlang_vm_statistics_dirty_io_run_queue_length - erlang_vm_statistics_dirty_cpu_run_queue_length - Added 'DS_PROMETHEUS' as a templated data source variable
1 parent c78bc8a commit b9dc0ea

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

deps/rabbitmq_prometheus/docker/grafana/dashboards/Erlang-BEAM.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
},
141141
"disableTextWrap": false,
142142
"editorMode": "builder",
143-
"expr": "erlang_vm_statistics_run_queues_length",
143+
"expr": "erlang_vm_statistics_run_queues_length{instance=\"$node\"}",
144144
"fullMetaSearch": false,
145145
"includeNullMetadata": true,
146146
"instant": false,
@@ -156,7 +156,7 @@
156156
},
157157
"disableTextWrap": false,
158158
"editorMode": "builder",
159-
"expr": "erlang_vm_statistics_dirty_io_run_queue_length",
159+
"expr": "erlang_vm_statistics_dirty_io_run_queue_length{instance=\"$node\"}",
160160
"fullMetaSearch": false,
161161
"hide": false,
162162
"includeNullMetadata": true,
@@ -173,7 +173,7 @@
173173
},
174174
"disableTextWrap": false,
175175
"editorMode": "builder",
176-
"expr": "erlang_vm_statistics_dirty_cpu_run_queue_length",
176+
"expr": "erlang_vm_statistics_dirty_cpu_run_queue_length{instance=\"$node\"}",
177177
"fullMetaSearch": false,
178178
"hide": false,
179179
"includeNullMetadata": true,
@@ -1165,6 +1165,20 @@
11651165
],
11661166
"templating": {
11671167
"list": [
1168+
{
1169+
"current": {},
1170+
"hide": 2,
1171+
"includeAll": false,
1172+
"label": "datasource",
1173+
"multi": false,
1174+
"name": "DS_PROMETHEUS",
1175+
"options": [],
1176+
"query": "prometheus",
1177+
"refresh": 1,
1178+
"regex": "",
1179+
"skipUrlSync": false,
1180+
"type": "datasource"
1181+
},
11681182
{
11691183
"current": {},
11701184
"datasource": {

0 commit comments

Comments
 (0)