Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions helm/monitoring/templates/configmap-grafana-dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ data:
},
"targets": [
{
"expr": "{namespace=~\"echo-.*\"} |~ \"error|ERROR|Error|Exception|exception|EXCEPTION\""
"expr": "{namespace=~\"echo-.*\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""
}
],
"options": {
Expand Down Expand Up @@ -1233,55 +1233,55 @@ data:
"fieldConfig": {"defaults": {"unit": "short"}},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"api\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\")[5m]))"}
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"api\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\")[5m]))"}
]
},
{"type": "logs", "title": "API Error Logs", "id": 202, "gridPos": {"h": 8, "w": 18, "x": 6, "y": 36},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"api\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\""}
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"api\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""}
],
"options": {"dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true}
},
{"type": "timeseries", "title": "Directus Error logs (5m count)", "id": 203, "gridPos": {"h": 8, "w": 6, "x": 0, "y": 44},
"fieldConfig": {"defaults": {"unit": "short"}},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"directus\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\")[5m]))"}
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"directus\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\")[5m]))"}
]
},
{"type": "logs", "title": "Directus Error Logs", "id": 204, "gridPos": {"h": 8, "w": 18, "x": 6, "y": 44},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"directus\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\""}
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"directus\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""}
],
"options": {"dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true}
},
{"type": "timeseries", "title": "Worker Error logs (5m count)", "id": 205, "gridPos": {"h": 8, "w": 6, "x": 0, "y": 52},
"fieldConfig": {"defaults": {"unit": "short"}},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"worker\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\")[5m]))"}
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"worker\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\")[5m]))"}
]
},
{"type": "logs", "title": "Worker Error Logs", "id": 206, "gridPos": {"h": 8, "w": 18, "x": 6, "y": 52},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"worker\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\""}
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"worker\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""}
],
"options": {"dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true}
},
{"type": "timeseries", "title": "Worker-CPU Error logs (5m count)", "id": 207, "gridPos": {"h": 8, "w": 6, "x": 0, "y": 60},
"fieldConfig": {"defaults": {"unit": "short"}},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"worker-cpu\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\")[5m]))"}
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", component=\"worker-cpu\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\")[5m]))"}
]
},
{"type": "logs", "title": "Worker-CPU Error Logs", "id": 208, "gridPos": {"h": 8, "w": 18, "x": 6, "y": 60},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"worker-cpu\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\""}
{"refId": "A", "expr": "{namespace=\"echo-prod\", component=\"worker-cpu\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""}
],
"options": {"dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true}
}
Expand All @@ -1290,13 +1290,13 @@ data:
"fieldConfig": {"defaults": {"unit": "short"}},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", container=\"neo4j\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\")[5m]))"}
{"refId": "A", "expr": "sum(count_over_time(({namespace=\"echo-prod\", container=\"neo4j\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\")[5m]))"}
]
},
{"type": "logs", "title": "Neo4j Error Logs", "id": 210, "gridPos": {"h": 8, "w": 18, "x": 6, "y": 68},
"datasource": {"type": "loki", "uid": "loki"},
"targets": [
{"refId": "A", "expr": "{namespace=\"echo-prod\", container=\"neo4j\"} |~ \"(?i)(error|exception|fail|fatal|critical|panic|warn|warning)\""}
{"refId": "A", "expr": "{namespace=\"echo-prod\", container=\"neo4j\"} |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""}
],
"options": {"dedupStrategy": "none", "enableLogDetails": true, "prettifyLogMessage": false, "showCommonLabels": false, "showLabels": false, "showTime": true, "sortOrder": "Descending", "wrapLogMessage": true}
}
Expand Down Expand Up @@ -1805,20 +1805,20 @@ data:
{
"selected": false,
"text": "Error Logs",
"value": "|~ \"(?i)error|exception|fail|fatal\""
"value": "|~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\""
},
{
"selected": false,
"text": "Warning Logs",
"value": "|~ \"(?i)warn|warning\""
"value": "|~ \"\\\\b(WARN|WARNING)\\\\b|\\\\[(warn|warning)\\\\]\""
},
{
"selected": false,
"text": "Worker CPU Logs",
"value": "|~ \"worker-cpu\""
}
],
"query": "All Logs : ,Error Logs : |~ \"(?i)error|exception|fail|fatal\",Warning Logs : |~ \"(?i)warn|warning\",Worker CPU Logs : |~ \"worker-cpu\"",
"query": "All Logs : ,Error Logs : |~ \"\\\\b(ERROR|FATAL|CRITICAL|Exception|Traceback)\\\\b|\\\\[(error|fatal|critical)\\\\]\",Warning Logs : |~ \"\\\\b(WARN|WARNING)\\\\b|\\\\[(warn|warning)\\\\]\",Worker CPU Logs : |~ \"worker-cpu\"",
"skipUrlSync": false,
"type": "custom"
},
Expand Down