-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ca-scribner/monitoring
Update grafana/prometheus implementation for charmed operator of katib
- Loading branch information
Showing
10 changed files
with
228 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
operators/katib-controller/src/grafana_dashboards/basic.json.tmpl
This file was deleted.
Oops, something went wrong.
207 changes: 207 additions & 0 deletions
207
operators/katib-controller/src/grafana_dashboards/katib_saved_no_templating.json.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": "-- Grafana --", | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"gnetId": null, | ||
"graphTooltip": 0, | ||
"id": 4, | ||
"links": [], | ||
"panels": [ | ||
{ | ||
"datasource": "${prometheusds}", | ||
"fieldConfig": { | ||
"defaults": { | ||
"color": { | ||
"mode": "thresholds" | ||
}, | ||
"custom": {}, | ||
"mappings": [], | ||
"thresholds": { | ||
"mode": "absolute", | ||
"steps": [ | ||
{ | ||
"color": "green", | ||
"value": null | ||
}, | ||
{ | ||
"color": "red", | ||
"value": 80 | ||
} | ||
] | ||
} | ||
}, | ||
"overrides": [] | ||
}, | ||
"gridPos": { | ||
"h": 9, | ||
"w": 12, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 2, | ||
"options": { | ||
"reduceOptions": { | ||
"calcs": [ | ||
"lastNotNull" | ||
], | ||
"fields": "", | ||
"values": false | ||
}, | ||
"showThresholdLabels": false, | ||
"showThresholdMarkers": true, | ||
"text": {} | ||
}, | ||
"pluginVersion": "7.4.1", | ||
"targets": [ | ||
{ | ||
"expr": "katib_experiments_current{status=\"Running\"}", | ||
"interval": "", | ||
"legendFormat": "", | ||
"queryType": "randomWalk", | ||
"refId": "A" | ||
}, | ||
{ | ||
"expr": "katib_trials_current{status=\"Running\"}", | ||
"hide": false, | ||
"interval": "", | ||
"legendFormat": "", | ||
"refId": "B" | ||
} | ||
], | ||
"timeFrom": null, | ||
"timeShift": null, | ||
"title": "Current Status", | ||
"type": "gauge" | ||
}, | ||
{ | ||
"aliasColors": {}, | ||
"bars": false, | ||
"dashLength": 10, | ||
"dashes": false, | ||
"datasource": "${prometheusds}", | ||
"fieldConfig": { | ||
"defaults": { | ||
"custom": {}, | ||
"unit": "/hr" | ||
}, | ||
"overrides": [] | ||
}, | ||
"fill": 1, | ||
"fillGradient": 0, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 12, | ||
"x": 0, | ||
"y": 9 | ||
}, | ||
"hiddenSeries": false, | ||
"id": 4, | ||
"legend": { | ||
"avg": false, | ||
"current": false, | ||
"max": false, | ||
"min": false, | ||
"show": true, | ||
"total": false, | ||
"values": false | ||
}, | ||
"lines": true, | ||
"linewidth": 1, | ||
"nullPointMode": "null", | ||
"options": { | ||
"alertThreshold": true | ||
}, | ||
"percentage": false, | ||
"pluginVersion": "7.4.1", | ||
"pointradius": 2, | ||
"points": false, | ||
"renderer": "flot", | ||
"seriesOverrides": [], | ||
"spaceLength": 10, | ||
"stack": false, | ||
"steppedLine": false, | ||
"targets": [ | ||
{ | ||
"expr": "rate(katib_experiment_created_total[60m]) * 60*60", | ||
"interval": "", | ||
"legendFormat": "Experiments", | ||
"queryType": "randomWalk", | ||
"refId": "A" | ||
}, | ||
{ | ||
"expr": "rate(katib_trial_created_total[60m]) * 60*60", | ||
"hide": false, | ||
"interval": "", | ||
"legendFormat": "Trials", | ||
"refId": "B" | ||
} | ||
], | ||
"thresholds": [], | ||
"timeFrom": null, | ||
"timeRegions": [], | ||
"timeShift": null, | ||
"title": "Creation Rates", | ||
"tooltip": { | ||
"shared": true, | ||
"sort": 0, | ||
"value_type": "individual" | ||
}, | ||
"type": "graph", | ||
"xaxis": { | ||
"buckets": null, | ||
"mode": "time", | ||
"name": null, | ||
"show": true, | ||
"values": [] | ||
}, | ||
"yaxes": [ | ||
{ | ||
"format": "/hr", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
}, | ||
{ | ||
"format": "short", | ||
"label": null, | ||
"logBase": 1, | ||
"max": null, | ||
"min": null, | ||
"show": true | ||
} | ||
], | ||
"yaxis": { | ||
"align": false, | ||
"alignLevel": null | ||
} | ||
} | ||
], | ||
"schemaVersion": 27, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-6h", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "", | ||
"title": "Katib Status", | ||
"uid": "SgVtIT87z", | ||
"version": 1 | ||
} |
5 changes: 0 additions & 5 deletions
5
operators/katib-controller/src/prometheus_alert_rules/tempfile
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
operators/katib-controller/src/prometheus_alert_rules/unit_unavailable.rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
alert: KatibControllerUnitIsUnavailable | ||
expr: up < 1 | ||
for: 0m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Katib-controller unit {{ $labels.juju_model }}/{{ $labels.juju_unit }} unavailable | ||
description: > | ||
The Katib-controller unit {{ $labels.juju_model }} {{ $labels.juju_unit }} is unavailable | ||
LABELS = {{ $labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters