Skip to content

Commit

Permalink
[#361] Integrate Loki panel for deployment log visualization in Grafana
Browse files Browse the repository at this point in the history
- Added a new panel to the GovTool Grafana dashboard configuration for
  visualizing deployment logs.
- This panel uses the Loki data source to display logs from
  `/var/log/deployment.log`, providing a trace of every deployment made.
- The panel is configured to display logs in descending order, focusing
  on deployment events. This aims to facilitate quick identification of
  deployment activities and troubleshooting issues.
- Updated the dashboard version to reflect these changes, ensuring that
  the dashboard remains up-to-date and functional with the latest
  configurations.

This enhancement improves the observability of the deployment process,
making it easier for operators to monitor deployment activities and
investigate issues directly from the Grafana interface.
  • Loading branch information
placek committed Mar 6, 2024
1 parent a985951 commit b411dad
Showing 1 changed file with 40 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 3,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -861,6 +860,45 @@
],
"title": "System load (avg 5 min)",
"type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "b0d64f25-3bca-4cc1-b8f3-6b391d88b442"
},
"description": "Trace of every deploy made on this machine. This is a good place to start when something goes wrong.",
"gridPos": {
"h": 4,
"w": 21,
"x": 0,
"y": 22
},
"id": 12,
"options": {
"dedupStrategy": "none",
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": false
},
"targets": [
{
"datasource": {
"type": "loki",
"uid": "b0d64f25-3bca-4cc1-b8f3-6b391d88b442"
},
"editorMode": "builder",
"expr": "{filename=\"/var/log/deployment.log\"}",
"queryType": "range",
"refId": "A"
}
],
"timeFrom": "1w",
"title": "Deployment events",
"type": "logs"
}
],
"refresh": "10s",
Expand All @@ -878,6 +916,6 @@
"timezone": "",
"title": "GovTool basic stats",
"uid": "e3697f62-6a01-4596-b626-d46141441b32",
"version": 1,
"version": 36,
"weekStart": ""
}

0 comments on commit b411dad

Please sign in to comment.