Skip to content

Commit

Permalink
Use mixins
Browse files Browse the repository at this point in the history
Signed-off-by: QuentinBisson <[email protected]>
  • Loading branch information
QuentinBisson committed Apr 16, 2024
1 parent efab778 commit 35febac
Show file tree
Hide file tree
Showing 14 changed files with 3,543 additions and 4,304 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"graphTooltip": 1,
"hideControls": false,
"links": [
{
Expand All @@ -21,7 +21,9 @@
"includeVars": true,
"keepTime": true,
"tags": [
"loki"
"owner:team-atlas",
"topic:observability",
"component:loki"
],
"targetBlank": false,
"title": "Loki Dashboards",
Expand Down Expand Up @@ -81,7 +83,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(count(loki_canary_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}))",
"expr": "sum(count(loki_canary_entries_total{cluster_id=~\"$cluster\", namespace=~\"$namespace\"}))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -179,7 +181,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(loki_canary_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(increase(loki_canary_entries_total{cluster_id=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -277,7 +279,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(loki_canary_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(increase(loki_canary_missing_entries_total{cluster_id=~\"$cluster\", namespace=~\"$namespace\"}[$__range]))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -375,7 +377,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(loki_canary_spot_check_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(increase(loki_canary_spot_check_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -473,7 +475,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(loki_canary_spot_check_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(increase(loki_canary_spot_check_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -571,7 +573,7 @@
"steppedLine": false,
"targets": [
{
"expr": "((sum(loki_canary_metric_test_expected{cluster=~\"$cluster\",namespace=~\"$namespace\"}) - sum(loki_canary_metric_test_actual{cluster=~\"$cluster\",namespace=~\"$namespace\"}))/(sum(loki_canary_metric_test_actual{cluster=~\"$cluster\",namespace=~\"$namespace\"}))) * 100",
"expr": "((sum(loki_canary_metric_test_expected{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}) - sum(loki_canary_metric_test_actual{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}))/(sum(loki_canary_metric_test_actual{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}))) * 100",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -669,7 +671,7 @@
"steppedLine": false,
"targets": [
{
"expr": "(sum(increase(loki_canary_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range])))*100",
"expr": "(sum(increase(loki_canary_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range])))*100",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -767,7 +769,7 @@
"steppedLine": false,
"targets": [
{
"expr": "(sum(increase(loki_canary_spot_check_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_spot_check_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))) * 100",
"expr": "(sum(increase(loki_canary_spot_check_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_spot_check_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))) * 100",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -865,7 +867,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(loki_canary_metric_test_expected{cluster=~\"$cluster\",namespace=~\"$namespace\"})",
"expr": "sum(loki_canary_metric_test_expected{cluster_id=~\"$cluster\",namespace=~\"$namespace\"})",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -963,7 +965,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(loki_canary_metric_test_actual{cluster=~\"$cluster\",namespace=~\"$namespace\"})",
"expr": "sum(loki_canary_metric_test_actual{cluster_id=~\"$cluster\",namespace=~\"$namespace\"})",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1061,7 +1063,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(increase(loki_canary_websocket_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"expr": "sum(increase(loki_canary_websocket_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1159,7 +1161,7 @@
"steppedLine": false,
"targets": [
{
"expr": "(sum(increase(loki_canary_websocket_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__range])))*100",
"expr": "(sum(increase(loki_canary_websocket_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range]))/sum(increase(loki_canary_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__range])))*100",
"format": null,
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1242,20 +1244,16 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.95, sum(rate(loki_canary_response_latency_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.95, sum(rate(loki_canary_response_latency_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p95",
"legendLink": null,
"step": 10
"legendLink": null
},
{
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_response_latency_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_response_latency_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p50",
"legendLink": null,
"step": 10
"legendLink": null
}
],
"thresholds": [],
Expand Down Expand Up @@ -1322,7 +1320,7 @@
},
"targets": [
{
"expr": "sum(rate(loki_canary_response_latency_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
"expr": "sum(rate(loki_canary_response_latency_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le)",
"format": "heatmap",
"intervalFactor": 2,
"legendFormat": "{{le}}",
Expand Down Expand Up @@ -1390,20 +1388,16 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.99, sum(rate(loki_canary_spot_check_request_duration_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.99, sum(rate(loki_canary_spot_check_request_duration_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p99",
"legendLink": null,
"step": 10
"legendLink": null
},
{
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_spot_check_request_duration_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_spot_check_request_duration_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p95",
"legendLink": null,
"step": 10
"legendLink": null
}
],
"thresholds": [],
Expand Down Expand Up @@ -1479,20 +1473,16 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(0.99, sum(rate(loki_canary_metric_test_request_duration_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[15m])) by (le))",
"expr": "histogram_quantile(0.99, sum(rate(loki_canary_metric_test_request_duration_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[15m])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p99",
"legendLink": null,
"step": 10
"legendLink": null
},
{
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_metric_test_request_duration_seconds_bucket{cluster=~\"$cluster\",namespace=~\"$namespace\"}[15m])) by (le))",
"expr": "histogram_quantile(0.50, sum(rate(loki_canary_metric_test_request_duration_seconds_bucket{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[15m])) by (le))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "p95",
"legendLink": null,
"step": 10
"legendLink": null
}
],
"thresholds": [],
Expand Down Expand Up @@ -1568,12 +1558,10 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(20, (sum by (cluster, pod) (increase(loki_canary_spot_check_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]))/sum by (cluster, pod) (increase(loki_canary_spot_check_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) * 100)) > 0",
"expr": "topk(20, (sum by (cluster_id, pod) (increase(loki_canary_spot_check_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]))/sum by (cluster_id, pod) (increase(loki_canary_spot_check_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])) * 100)) > 0",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "",
"legendLink": null,
"step": 10
"legendLink": null
}
],
"thresholds": [],
Expand Down Expand Up @@ -1649,12 +1637,10 @@
"steppedLine": false,
"targets": [
{
"expr": "topk(20,(sum by (cluster, pod)(increase(loki_canary_missing_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]))/sum by (cluster, pod)(increase(loki_canary_entries_total{cluster=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])))*100) > 0",
"expr": "topk(20,(sum by (cluster_id, pod)(increase(loki_canary_missing_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval]))/sum by (cluster_id, pod)(increase(loki_canary_entries_total{cluster_id=~\"$cluster\",namespace=~\"$namespace\"}[$__rate_interval])))*100) > 0",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Missing {{ cluster }} {{ pod }}",
"legendLink": null,
"step": 10
"legendFormat": "Missing {{ cluster_id }} {{ pod }}",
"legendLink": null
}
],
"thresholds": [],
Expand Down Expand Up @@ -1699,7 +1685,9 @@
"schemaVersion": 27,
"style": "dark",
"tags": [
"loki"
"owner:team-atlas",
"topic:observability",
"component:loki"
],
"templating": {
"list": [
Expand All @@ -1709,7 +1697,7 @@
"value": "default"
},
"hide": 0,
"label": "Data Source",
"label": "Data source",
"name": "datasource",
"options": [],
"query": "prometheus",
Expand All @@ -1730,7 +1718,7 @@
"multi": false,
"name": "cluster",
"options": [],
"query": "label_values(loki_build_info, cluster)",
"query": "label_values(loki_build_info, cluster_id)",
"refresh": 1,
"regex": "",
"sort": 2,
Expand All @@ -1753,7 +1741,7 @@
"multi": false,
"name": "namespace",
"options": [],
"query": "label_values(loki_build_info{cluster=~\"$cluster\"}, namespace)",
"query": "label_values(loki_build_info{cluster_id=~\"$cluster\"}, namespace)",
"refresh": 1,
"regex": "",
"sort": 2,
Expand Down
Loading

0 comments on commit 35febac

Please sign in to comment.