Skip to content

Commit

Permalink
capi-add-aggragated-error-logs (#483)
Browse files Browse the repository at this point in the history
* capi-add-aggragated-error-logs

* fix-cluster-app-list
  • Loading branch information
calvix authored Apr 11, 2024
1 parent 38d1105 commit fc0d305
Showing 1 changed file with 142 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "aggregate error logs for specific cluster ID from all 3 CAPI controllers",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 119,
"links": [],
"panels": [
{
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"description": "",
"gridPos": {
"h": 21,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${loki_datasource}"
},
"editorMode": "builder",
"expr": "{app=~\"cluster-api\"} |~ `(?i)error` |= `$cluster` | logfmt",
"queryType": "range",
"refId": "A"
}
],
"title": "Agregated error logs for all CAPI controllers",
"transparent": true,
"type": "logs"
}
],
"schemaVersion": 39,
"tags": [
"owner:team-phoenix",
"team:phoenix",
"provider:capi"
],
"templating": {
"list": [
{
"current": {
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(up{app=\"kubernetes\"},cluster_id)",
"hide": 0,
"includeAll": false,
"label": "Cluster",
"multi": false,
"name": "cluster",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(up{app=\"kubernetes\"},cluster_id)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
},
"hide": 0,
"includeAll": false,
"multi": false,
"name": "loki_datasource",
"options": [],
"query": "loki",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": false,
"text": "Mimir",
"value": "mimir"
},
"hide": 0,
"includeAll": false,
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "CAPI - agregated error logs for capi controllers",
"uid": "bdi7iswg81czkcasd",
"version": 9,
"weekStart": ""
}

0 comments on commit fc0d305

Please sign in to comment.