Skip to content

Commit

Permalink
Filter instance dashboard datasource by using the RHOBS instance filt…
Browse files Browse the repository at this point in the history
…er (#550)
  • Loading branch information
douglascamata authored Jul 12, 2023
1 parent 4778553 commit dae0952
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,12 @@ function() {
) { collapse: true }
) + {
templating+: {
list+: [namespaceTemplate, jobTemplate, intervalTemplate],
list+: [
if variable.name == 'datasource'
then variable { regex: config.dashboard.instance_name_filter }
else variable
for variable in super.list
] + [namespaceTemplate, jobTemplate, intervalTemplate],
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8063,6 +8063,22 @@ data:
"regex": "",
"type": "datasource"
},
{
"current": {
"text": "default",
"value": "default"
},
"hide": 0,
"label": null,
"name": "datasource",
"options": [
],
"query": "prometheus",
"refresh": 1,
"regex": "/^rhobs.*|telemeter-prod-01-prometheus|app-sre-stage-01-prometheus/",
"type": "datasource"
},
{
"allValue": ".+",
"current": {
Expand Down

0 comments on commit dae0952

Please sign in to comment.