-
Notifications
You must be signed in to change notification settings - Fork 2
Observabilidade
Vinicius Aguiar edited this page Nov 22, 2023
·
6 revisions
- Selecione data source em configurações

- Adicione o data source loki com a url do service


Adicionar dashboard de backend
Adicionar dashboard do metabase
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 30,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "loki",
"uid": "ZG5SePISk"
},
"gridPos": {
"h": 23,
"w": 12,
"x": 0,
"y": 0
},
"id": 4,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "ZG5SePISk"
},
"editorMode": "code",
"expr": "{app=\"metabase\"} != `/api/health`",
"queryType": "range",
"refId": "A"
}
],
"title": "Logs",
"type": "logs"
},
{
"datasource": {
"type": "loki",
"uid": "ZG5SePISk"
},
"gridPos": {
"h": 23,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "ZG5SePISk"
},
"editorMode": "builder",
"expr": "{app=\"metabase\"} |= `/api/health`",
"queryType": "range",
"refId": "A"
}
],
"title": "Health Check",
"type": "logs"
}
],
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Metabase",
"uid": "tnBIzCISz",
"version": 4,
"weekStart": ""
}