-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c7ad9e
commit 804439b
Showing
1 changed file
with
157 additions
and
0 deletions.
There are no files selected for viewing
157 changes: 157 additions & 0 deletions
157
etc/kayobe/kolla/config/grafana/dashboards/openstack/logs.json
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,157 @@ | ||
{% raw %} | ||
{ | ||
"annotations": { | ||
"list": [ | ||
{ | ||
"builtIn": 1, | ||
"datasource": { | ||
"type": "grafana", | ||
"uid": "-- Grafana --" | ||
}, | ||
"enable": true, | ||
"hide": true, | ||
"iconColor": "rgba(0, 211, 255, 1)", | ||
"name": "Annotations & Alerts", | ||
"type": "dashboard" | ||
} | ||
] | ||
}, | ||
"editable": true, | ||
"fiscalYearStartMonth": 0, | ||
"graphTooltip": 0, | ||
"id": 2084515, | ||
"links": [], | ||
"liveNow": false, | ||
"panels": [ | ||
{ | ||
"datasource": { | ||
"type": "grafana-opensearch-datasource", | ||
"uid": "iT6QLWyVk" | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 24, | ||
"x": 0, | ||
"y": 0 | ||
}, | ||
"id": 2, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": true, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": false | ||
}, | ||
"targets": [ | ||
{ | ||
"alias": "", | ||
"bucketAggs": [ | ||
{ | ||
"id": "2", | ||
"settings": { | ||
"min_doc_count": "0", | ||
"order": "desc", | ||
"orderBy": "_term", | ||
"size": "10" | ||
}, | ||
"type": "terms" | ||
} | ||
], | ||
"datasource": { | ||
"type": "grafana-opensearch-datasource", | ||
"uid": "iT6QLWyVk" | ||
}, | ||
"format": "table", | ||
"metrics": [ | ||
{ | ||
"id": "1", | ||
"type": "logs" | ||
} | ||
], | ||
"query": "search source=flog-* \n| eval firstcolumnpart=concat('Hostname: ', Hostname, ' | Log Level: ', log_level, ' | Logger: ', Logger, ' | Program Name: ', programname)\n| eval firstcolumn=concat(firstcolumnpart, ' | Payload: ', left(Payload, 120),'...')\n| fields firstcolumn, Hostname, programname, Logger, log_level, Pid, Payload\n| head 100", | ||
"queryType": "PPL", | ||
"refId": "A", | ||
"timeField": "@timestamp" | ||
} | ||
], | ||
"title": "All Logs", | ||
"type": "logs" | ||
}, | ||
{ | ||
"datasource": { | ||
"type": "grafana-opensearch-datasource", | ||
"uid": "iT6QLWyVk" | ||
}, | ||
"gridPos": { | ||
"h": 8, | ||
"w": 24, | ||
"x": 0, | ||
"y": 8 | ||
}, | ||
"id": 1, | ||
"options": { | ||
"dedupStrategy": "none", | ||
"enableLogDetails": true, | ||
"prettifyLogMessage": false, | ||
"showCommonLabels": false, | ||
"showLabels": false, | ||
"showTime": true, | ||
"sortOrder": "Descending", | ||
"wrapLogMessage": true | ||
}, | ||
"targets": [ | ||
{ | ||
"alias": "", | ||
"bucketAggs": [ | ||
{ | ||
"field": "@timestamp", | ||
"id": "2", | ||
"settings": { | ||
"interval": "auto" | ||
}, | ||
"type": "date_histogram" | ||
} | ||
], | ||
"datasource": { | ||
"type": "grafana-opensearch-datasource", | ||
"uid": "iT6QLWyVk" | ||
}, | ||
"format": "logs", | ||
"metrics": [ | ||
{ | ||
"id": "1", | ||
"type": "count" | ||
} | ||
], | ||
"query": "search source=flog-* \n| where log_level=\"ERROR\" OR log_level=\"error\" OR log_level=\"err\" OR log_level=\"crit\"\n| eval firstcolumn=concat('Hostname: ', Hostname, ' | Logger: ', Logger, ' | Program Name: ', programname,' | Payload: ', left(Payload, 120),'...')\n| fields firstcolumn, Hostname, programname, Logger, log_level, Pid, Payload", | ||
"queryType": "PPL", | ||
"refId": "A", | ||
"timeField": "@timestamp" | ||
} | ||
], | ||
"title": "Log Errors", | ||
"type": "logs" | ||
} | ||
], | ||
"refresh": "", | ||
"schemaVersion": 38, | ||
"style": "dark", | ||
"tags": [], | ||
"templating": { | ||
"list": [] | ||
}, | ||
"time": { | ||
"from": "now-15m", | ||
"to": "now" | ||
}, | ||
"timepicker": {}, | ||
"timezone": "", | ||
"title": "Logs - Test", | ||
"uid": "d2e8a27b-2a2b-494d-ba76-b54e902055f8", | ||
"version": 1, | ||
"weekStart": "" | ||
} | ||
{% endraw %} |