Skip to content

Commit

Permalink
Grafana dashboards (#21)
Browse files Browse the repository at this point in the history
* don't use external option
  • Loading branch information
scrungus authored Aug 23, 2024
1 parent 262894d commit 6f60577
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 92 deletions.
84 changes: 31 additions & 53 deletions charts/files/operator_dashboard.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -49,7 +18,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"id": 43,
"links": [],
"panels": [
{
Expand All @@ -68,7 +37,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -155,7 +124,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -172,7 +141,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand Down Expand Up @@ -204,7 +173,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -250,8 +219,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -291,7 +259,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand Down Expand Up @@ -325,7 +293,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -371,8 +339,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -412,7 +379,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -428,7 +395,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand Down Expand Up @@ -462,7 +429,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -508,8 +475,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -549,7 +515,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -566,7 +532,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -591,10 +557,14 @@
"list": [
{
"allValue": "",
"current": {},
"current": {
"selected": false,
"text": "5fcc12ae-513f-4eac-a2e0-e7772f191282",
"value": "5fcc12ae-513f-4eac-a2e0-e7772f191282"
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"definition": "label_values(coral_credits_allocation_hours_per_project,project_id)",
"hide": 0,
Expand All @@ -615,10 +585,18 @@
"type": "query"
},
{
"current": {},
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"definition": "label_values(coral_credits_allocation_hours_per_project,resource_class)",
"hide": 2,
Expand Down
59 changes: 20 additions & 39 deletions charts/files/user_dashboard.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "10.4.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -49,13 +18,13 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"id": 42,
"links": [],
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -142,7 +111,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -158,7 +127,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "builder",
Expand All @@ -183,10 +152,14 @@
"list": [
{
"allValue": "",
"current": {},
"current": {
"selected": false,
"text": "5fcc12ae-513f-4eac-a2e0-e7772f191282",
"value": "5fcc12ae-513f-4eac-a2e0-e7772f191282"
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"definition": "label_values(coral_credits_allocation_hours_per_project,project_id)",
"hide": 0,
Expand All @@ -207,10 +180,18 @@
"type": "query"
},
{
"current": {},
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "prometheus"
},
"definition": "label_values(coral_credits_allocation_hours_per_project,resource_class)",
"hide": 2,
Expand Down

0 comments on commit 6f60577

Please sign in to comment.