fix(dashboard): add Variable for job name
This commit is contained in:
parent
cdff80e41f
commit
0cb37c68f6
@ -25,7 +25,7 @@
|
|||||||
"editable": true,
|
"editable": true,
|
||||||
"fiscalYearStartMonth": 0,
|
"fiscalYearStartMonth": 0,
|
||||||
"graphTooltip": 0,
|
"graphTooltip": 0,
|
||||||
"id": null,
|
"id": 16690,
|
||||||
"links": [],
|
"links": [],
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
@ -89,7 +89,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -155,7 +155,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -219,7 +219,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -285,7 +285,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -357,7 +357,7 @@
|
|||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
"wideLayout": true
|
"wideLayout": true
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -366,7 +366,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "max(rate(http_request_duration_seconds_bucket{job=\"spegel\"}[$__interval]))",
|
"expr": "max(rate(http_request_duration_seconds_bucket{job=\"$job\"}[$__interval]))",
|
||||||
"format": "table",
|
"format": "table",
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "__auto",
|
"legendFormat": "__auto",
|
||||||
@ -399,7 +399,7 @@
|
|||||||
"content": "<br>\n<div style=\"text-align: center;\"><a href=\"https://github.com/XenitAB/spegel\" target=\"_blank\">Spegel at GitHub</a> </div>\n\n",
|
"content": "<br>\n<div style=\"text-align: center;\"><a href=\"https://github.com/XenitAB/spegel\" target=\"_blank\">Spegel at GitHub</a> </div>\n\n",
|
||||||
"mode": "html"
|
"mode": "html"
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"title": "Github link",
|
"title": "Github link",
|
||||||
"transparent": true,
|
"transparent": true,
|
||||||
"type": "text"
|
"type": "text"
|
||||||
@ -499,7 +499,7 @@
|
|||||||
"showHeader": true,
|
"showHeader": true,
|
||||||
"sortBy": []
|
"sortBy": []
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -508,7 +508,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "spegel_advertised_images{job=~\"spegel\",instance=~\"$instance\"}",
|
"expr": "spegel_advertised_images{job=~\"$job\",instance=~\"$instance\"}",
|
||||||
"format": "table",
|
"format": "table",
|
||||||
"instant": true,
|
"instant": true,
|
||||||
"legendFormat": "__auto",
|
"legendFormat": "__auto",
|
||||||
@ -522,7 +522,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "spegel_advertised_keys{job=~\"spegel\",instance=~\"$instance\"} ",
|
"expr": "spegel_advertised_keys{job=~\"$job\",instance=~\"$instance\"} ",
|
||||||
"format": "table",
|
"format": "table",
|
||||||
"hide": false,
|
"hide": false,
|
||||||
"instant": true,
|
"instant": true,
|
||||||
@ -646,11 +646,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -659,7 +660,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "spegel_advertised_images{job=~\"spegel\",instance=~\"$instance\"}",
|
"expr": "spegel_advertised_images{job=~\"$job\",instance=~\"$instance\"}",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{ instance }}",
|
"legendFormat": "{{ instance }}",
|
||||||
@ -808,11 +809,12 @@
|
|||||||
"showLegend": false
|
"showLegend": false
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -910,11 +912,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -923,7 +926,7 @@
|
|||||||
},
|
},
|
||||||
"editorMode": "code",
|
"editorMode": "code",
|
||||||
"exemplar": false,
|
"exemplar": false,
|
||||||
"expr": "spegel_advertised_keys{job=~\"spegel\",instance=~\"$instance\"} ",
|
"expr": "spegel_advertised_keys{job=~\"$job\",instance=~\"$instance\"} ",
|
||||||
"format": "time_series",
|
"format": "time_series",
|
||||||
"instant": false,
|
"instant": false,
|
||||||
"legendFormat": "{{ instance }}",
|
"legendFormat": "{{ instance }}",
|
||||||
@ -1024,11 +1027,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "single",
|
"mode": "single",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -1122,11 +1126,12 @@
|
|||||||
"showLegend": true
|
"showLegend": true
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
|
"hideZeros": false,
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
"sort": "none"
|
"sort": "none"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pluginVersion": "11.3.0",
|
"pluginVersion": "11.5.2",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
@ -1153,7 +1158,10 @@
|
|||||||
"templating": {
|
"templating": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"current": null,
|
"current": {
|
||||||
|
"text": "hub-devops-observability-prometheus",
|
||||||
|
"value": "P3D5ADE37875AD284"
|
||||||
|
},
|
||||||
"includeAll": false,
|
"includeAll": false,
|
||||||
"label": "Data Source",
|
"label": "Data Source",
|
||||||
"name": "datasource",
|
"name": "datasource",
|
||||||
@ -1184,7 +1192,10 @@
|
|||||||
"type": "custom"
|
"type": "custom"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"current": {},
|
"current": {
|
||||||
|
"text": "spegel-devops-hub-26b8d",
|
||||||
|
"value": "spegel-devops-hub-26b8d"
|
||||||
|
},
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "${datasource}"
|
"uid": "${datasource}"
|
||||||
@ -1205,12 +1216,41 @@
|
|||||||
"type": "query"
|
"type": "query"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"current": {},
|
"allowCustomValue": false,
|
||||||
|
"current": {
|
||||||
|
"text": "spegel-devops-hub",
|
||||||
|
"value": "spegel-devops-hub"
|
||||||
|
},
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "${datasource}"
|
"uid": "${datasource}"
|
||||||
},
|
},
|
||||||
"definition": "label_values(spegel_advertised_keys{job=\"spegel\"},instance)",
|
"definition": "label_values(spegel_advertised_keys,job)",
|
||||||
|
"hide": 2,
|
||||||
|
"label": "job",
|
||||||
|
"name": "job",
|
||||||
|
"options": [],
|
||||||
|
"query": {
|
||||||
|
"qryType": 1,
|
||||||
|
"query": "label_values(spegel_advertised_keys,job)",
|
||||||
|
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
||||||
|
},
|
||||||
|
"refresh": 1,
|
||||||
|
"regex": "",
|
||||||
|
"type": "query"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"current": {
|
||||||
|
"text": "All",
|
||||||
|
"value": [
|
||||||
|
"$__all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"datasource": {
|
||||||
|
"type": "prometheus",
|
||||||
|
"uid": "${datasource}"
|
||||||
|
},
|
||||||
|
"definition": "label_values(spegel_advertised_keys{job=\"$job\"},instance)",
|
||||||
"includeAll": true,
|
"includeAll": true,
|
||||||
"label": "instance",
|
"label": "instance",
|
||||||
"multi": true,
|
"multi": true,
|
||||||
@ -1218,7 +1258,7 @@
|
|||||||
"options": [],
|
"options": [],
|
||||||
"query": {
|
"query": {
|
||||||
"qryType": 1,
|
"qryType": 1,
|
||||||
"query": "label_values(spegel_advertised_keys{job=\"spegel\"},instance)",
|
"query": "label_values(spegel_advertised_keys{job=\"$job\"},instance)",
|
||||||
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
"refId": "PrometheusVariableQueryEditor-VariableQuery"
|
||||||
},
|
},
|
||||||
"refresh": 2,
|
"refresh": 2,
|
||||||
@ -1235,7 +1275,6 @@
|
|||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Spegel stateless cluster local OCI registry mirror",
|
"title": "Spegel stateless cluster local OCI registry mirror",
|
||||||
"uid": "1iY4QMJVk-psee",
|
"uid": "1iY4QMJVk-psee",
|
||||||
"version": 1,
|
"version": 4,
|
||||||
"weekStart": "",
|
"weekStart": ""
|
||||||
"gnetId": 18089
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user