Skip to content

Commit 7c863bd

Browse files
author
Sunil Thaha
authored
Merge pull request #606 from vprashar2929/fix-dash-all
fix(powermonitor): remove All option from namespace and pod dropdowns
2 parents 9e469e6 + 6c12bf3 commit 7c863bd

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

pkg/components/power-monitor/assets/dashboards/power-monitor-namespace-info.json

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,7 @@
329329
"refresh": "",
330330
"schemaVersion": 36,
331331
"style": "dark",
332-
"tags": [
333-
"power-monitor-mixin"
334-
],
332+
"tags": ["power-monitor-mixin"],
335333
"templating": {
336334
"list": [
337335
{
@@ -353,22 +351,16 @@
353351
},
354352
{
355353
"allValue": ".*",
356-
"current": {
357-
"selected": true,
358-
"text": "All",
359-
"value": "$__all"
360-
},
354+
"current": {},
361355
"datasource": {
362356
"type": "prometheus",
363357
"uid": "${datasource}"
364358
},
365359
"definition": "label_values(kepler_pod_cpu_watts{job=\"power-monitor\"}, pod_namespace)",
366360
"description": "Namespace to choose",
367361
"hide": 0,
368-
"includeAll": true,
369-
"defaultValue": "$__all",
362+
"includeAll": false,
370363
"label": "Namespace",
371-
"multi": true,
372364
"name": "namespace",
373365
"options": [],
374366
"query": "label_values(kepler_pod_cpu_watts{job=\"power-monitor\"}, pod_namespace)",
@@ -383,22 +375,16 @@
383375
},
384376
{
385377
"allValue": ".*",
386-
"current": {
387-
"selected": true,
388-
"text": "All",
389-
"value": "$__all"
390-
},
378+
"current": {},
391379
"datasource": {
392380
"type": "prometheus",
393381
"uid": "${datasource}"
394382
},
395383
"definition": "label_values(kepler_pod_cpu_watts{job=\"power-monitor\",pod_namespace=~\"$namespace\"}, pod_name)",
396384
"description": "Pod to choose",
397385
"hide": 0,
398-
"includeAll": true,
399-
"defaultValue": "$__all",
386+
"includeAll": false,
400387
"label": "Pod",
401-
"multi": true,
402388
"name": "pod",
403389
"options": [],
404390
"query": "label_values(kepler_pod_cpu_watts{job=\"power-monitor\",pod_namespace=~\"$namespace\"}, pod_name)",

0 commit comments

Comments
 (0)