Skip to content

Commit

Permalink
Updated logs panel in the overview dashboard (#18)
Browse files Browse the repository at this point in the history
- Count of the error logs will be visible in the overview dashboard
- Logs panel will now show logs with error and exception

Co-authored-by: Kaushal Vora <[email protected]>
  • Loading branch information
kaushall and Kaushal Vora authored Jul 16, 2024
1 parent 3024036 commit 0b28756
Showing 1 changed file with 114 additions and 7 deletions.
121 changes: 114 additions & 7 deletions tools/nopo11y-operator/templates/nopo11y-op-dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1435,37 +1435,144 @@ data:
"uid": "P8E80F9AEF21F6940"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"noValue": "0",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Count of Error Logs"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 12,
"w": 24,
"h": 8,
"w": 8,
"x": 0,
"y": 68
},
"id": 22,
"id": 25,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "sum(rate({ {%- if cluster %}cluster=\"{{ cluster }}\", {%- endif %}pod=~\"{{ deployment }}.*\", container!=\"istio-proxy\"} |~ `(?i)error` or `(?i)exception` [$__interval]))",
"legendFormat": "Count of Error Logs",
"queryType": "range",
"refId": "A"
}
],
"title": "Logs Error Count",
"type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"description": "",
"gridPos": {
"h": 8,
"w": 16,
"x": 8,
"y": 68
},
"id": 26,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"showTime": true,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"pluginVersion": "9.1.7",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "P8E80F9AEF21F6940"
},
"editorMode": "code",
"expr": "{ {%- if cluster %}cluster=\"{{ cluster }}\", {%- endif %}pod=~\"{{ deployment }}.*\", container!=\"istio-proxy\"} |= ``",
"expr": "{ {%- if cluster %}cluster=\"{{ cluster }}\", {%- endif %}pod=~\"{{ deployment }}.*\", container!=\"istio-proxy\"} |~ `(?i)error` or `(?i)exception`",
"queryType": "range",
"refId": "A"
}
],
"title": "Logs",
"title": "Error Logs",
"type": "logs"
}
],
Expand Down

0 comments on commit 0b28756

Please sign in to comment.