Skip to content

Commit

Permalink
Add datasource in a few phoenix dashboards (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Jun 5, 2024
1 parent 399b79e commit a7678c7
Show file tree
Hide file tree
Showing 8 changed files with 546 additions and 453 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
]
},
"description": "aggregate error logs for specific cluster ID for CAPA controllers",
"description": "aggregate error logs for specific cluster for CAPA controllers",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
]
},
"description": "aggregate error logs for specific cluster ID from all 3 CAPI controllers",
"description": "aggregate error logs for specific cluster from all 3 CAPI controllers",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"liveNow": false,
"panels": [
{
"datasource": "${datasource}",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -96,15 +97,13 @@
},
"targets": [
{
"datasource": "default",
"exemplar": true,
"expr": "avg by (node) (node_nf_conntrack_entries{cluster_id=\"$cluster\"})",
"interval": "",
"legendFormat": "{{node}} (current)",
"refId": "A"
},
{
"datasource": "default",
"exemplar": true,
"expr": "max by (node) (node_nf_conntrack_entries_limit{cluster_id=\"$cluster\"})",
"hide": false,
Expand All @@ -126,24 +125,39 @@
],
"templating": {
"list": [
{
"current": {
"text": "default",
"value": "default"
},
"hide": 0,
"label": "Data source",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {
"selected": true,
"text": "5jka7",
"value": "5jka7"
},
"datasource": "$datasource",
"definition": "label_values(node_nf_conntrack_entries,cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster ID",
"label": "Cluster",
"multi": false,
"name": "cluster",
"options": [],
"query": {
"query": "label_values(node_nf_conntrack_entries,cluster_id)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
Expand Down
Loading

0 comments on commit a7678c7

Please sign in to comment.