Skip to content

Commit

Permalink
fix(dashboards): minor fixes (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Aug 8, 2024
1 parent 83c6641 commit 8cce14b
Showing 1 changed file with 39 additions and 34 deletions.
73 changes: 39 additions & 34 deletions src/grafana_dashboards/metrics-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"fiscalYearStartMonth": 0,
"gnetId": 13407,
"graphTooltip": 0,
"id": 5,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -86,7 +85,7 @@
},
"textMode": "auto"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -149,14 +148,14 @@
},
"textMode": "auto"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
"uid": "${prometheusds}"
},
"editorMode": "code",
"expr": "sum(log_messages_total{juju_application=~\"$juju_application\",juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\"})",
"expr": "sum(log_messages_total{juju_application=~\"$juju_application\",juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_unit=~\"$juju_unit\"})",
"instant": false,
"interval": "",
"legendFormat": "",
Expand Down Expand Up @@ -211,7 +210,7 @@
},
"textMode": "auto"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -272,7 +271,7 @@
},
"textMode": "auto"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -336,7 +335,7 @@
},
"textMode": "value"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -402,7 +401,7 @@
},
"textMode": "value"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -464,7 +463,7 @@
},
"textMode": "auto"
},
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -534,7 +533,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand All @@ -547,7 +546,7 @@
"datasource": {
"uid": "${prometheusds}"
},
"expr": "sum by(level) (irate(log_messages_total{juju_application=~\"$juju_application\",juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_unit=~\"$juju_unit\"}[1m]))",
"expr": "sum by(level) (irate(log_messages_total{juju_application=~\"$juju_application\",juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_unit=~\"$juju_unit\"}[$__rate_interval]))",
"interval": "",
"legendFormat": "{{ level }}",
"refId": "A"
Expand Down Expand Up @@ -630,7 +629,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -726,7 +725,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -822,7 +821,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -918,7 +917,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1038,7 +1037,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1134,7 +1133,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1254,7 +1253,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1350,7 +1349,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1435,7 +1434,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1520,7 +1519,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1606,7 +1605,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "9.2.1",
"pluginVersion": "9.5.3",
"pointradius": 2,
"points": false,
"renderer": "flot",
Expand Down Expand Up @@ -1678,7 +1677,7 @@
"refId": "A"
}
],
"title": "Index",
"title": "Index (only for HA)",
"type": "row"
},
{
Expand Down Expand Up @@ -3333,7 +3332,8 @@
}
}
],
"schemaVersion": 37,
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [
"loki"
Expand Down Expand Up @@ -3386,16 +3386,16 @@
"datasource": {
"uid": "${prometheusds}"
},
"definition": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_application=~\"$juju_application\"},juju_unit)",
"definition": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_application=~\"$juju_application\",juju_charm=~\"loki-k8s\"},juju_unit)",
"hide": 0,
"includeAll": true,
"label": "Juju unit",
"multi": true,
"name": "juju_unit",
"options": [],
"query": {
"query": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_application=~\"$juju_application\"},juju_unit)",
"refId": "StandardVariableQuery"
"query": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_application=~\"$juju_application\",juju_charm=~\"loki-k8s\"},juju_unit)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
Expand All @@ -3409,23 +3409,27 @@
{
"allValue": ".*",
"current": {
"selected": false,
"text": "All",
"value": "$__all"
"selected": true,
"text": [
"loki"
],
"value": [
"loki"
]
},
"datasource": {
"uid": "${prometheusds}"
},
"definition": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\"},juju_application)",
"definition": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_charm=~\"loki-k8s\"},juju_application)",
"hide": 0,
"includeAll": true,
"label": "Juju application",
"multi": true,
"name": "juju_application",
"options": [],
"query": {
"query": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\"},juju_application)",
"refId": "StandardVariableQuery"
"query": "label_values(up{juju_model=~\"$juju_model\",juju_model_uuid=~\"$juju_model_uuid\",juju_charm=~\"loki-k8s\"},juju_application)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
Expand Down Expand Up @@ -3519,5 +3523,6 @@
"timezone": "",
"title": "Loki Operator Overview",
"uid": "loki",
"version": 39
"version": 1,
"weekStart": ""
}

0 comments on commit 8cce14b

Please sign in to comment.