Skip to content

Commit

Permalink
add datasource to dashboards (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Jun 12, 2024
1 parent 4ba3394 commit 9049681
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 55 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

## [Unreleased]

### Changed

- Add datasource selector to sloth dashboards.

## [1.4.4] - 2024-02-19

### Fixed
Expand Down
70 changes: 48 additions & 22 deletions helm/sloth/templates/grafana-dashboard-sloth-overview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data:
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"gridPos": {
"h": 1,
Expand All @@ -61,7 +61,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"refId": "A"
}
Expand All @@ -72,7 +72,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -124,7 +124,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"exemplar": true,
"expr": "count(sloth_slo_info)",
Expand All @@ -139,7 +139,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -191,7 +191,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"exemplar": true,
"expr": "count(max(sloth_slo_info) by (sloth_service))",
Expand All @@ -206,7 +206,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -267,7 +267,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand All @@ -284,7 +284,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -337,7 +337,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand All @@ -354,7 +354,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -407,7 +407,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"exemplar": true,
"expr": "max(ALERTS{sloth_id!=\"\",sloth_severity=\"page\"}) OR on() vector(0)",
Expand All @@ -423,7 +423,7 @@ data:
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"gridPos": {
"h": 1,
Expand All @@ -437,7 +437,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"refId": "A"
}
Expand All @@ -448,7 +448,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"description": "The burning rate of the all the Service SLOs",
"fieldConfig": {
Expand Down Expand Up @@ -530,7 +530,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand All @@ -548,7 +548,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"description": "The SLOs that currently are burning more error budget that then available",
"fieldConfig": {
Expand Down Expand Up @@ -662,7 +662,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand Down Expand Up @@ -716,7 +716,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"description": "Shows all the SLOs at the same time burning rate state",
"fieldConfig": {
Expand Down Expand Up @@ -776,7 +776,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand All @@ -794,7 +794,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -853,7 +853,7 @@ data:
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "$datasource"
},
"editorMode": "code",
"exemplar": true,
Expand Down Expand Up @@ -881,12 +881,34 @@ data:
],
"templating": {
"list": [
{
"current": {
"selected": false,
"text": "default",
"value": "default"
},
"hide": 0,
"includeAll": false,
"label": "Data source",
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "gaia",
"value": "gaia"
},
"datasource": {
"type": "prometheus",
"uid": "$datasource"
},
"definition": "label_values(slo:period_error_budget_remaining:ratio, cluster_id)",
"hide": 0,
"includeAll": false,
Expand All @@ -910,6 +932,10 @@ data:
"text": "1",
"value": "1"
},
"datasource": {
"type": "prometheus",
"uid": "$datasource"
},
"description": "The minimum burning budget rate (0-1) to show on the general SLOs block",
"hide": 0,
"label": "Min Burning rate",
Expand Down
Loading

0 comments on commit 9049681

Please sign in to comment.