feat(observability): add VictoriaLogs log panels to platform, forgejo, argocd dashboards

This commit is contained in:
Daniel Sy 2026-06-19 13:34:08 +02:00
parent bcf583a055
commit b6fbd3f6eb
Signed by untrusted user: danielsy
GPG key ID: 1F39A8BBCD2EE3D3
3 changed files with 50 additions and 0 deletions

View file

@ -111,6 +111,20 @@ spec:
"title": "Reconciliation Rate",
"type": "timeseries",
"targets": [{"expr": "sum(rate(argocd_app_reconcile_count{cluster_environment=~\"$cluster_environment\"}[5m])) by (namespace)", "legendFormat": "{{namespace}}"}]
},
{
"collapsed": false,
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 27},
"title": "ArgoCD Logs",
"type": "row"
},
{
"datasource": {"type": "victoriametrics-logs-datasource"},
"gridPos": {"h": 10, "w": 24, "x": 0, "y": 28},
"title": "ArgoCD Logs",
"type": "logs",
"targets": [{"expr": "{cluster_environment=~\"$cluster_environment\", kubernetes.namespace=\"argocd\"}", "refId": "A"}],
"options": {"showTime": true, "showLabels": true, "wrapLogMessage": true, "enableLogDetails": true, "sortOrder": "Descending"}
}
],
"schemaVersion": 39,

View file

@ -158,6 +158,28 @@ spec:
"title": "OAuth Apps",
"type": "stat",
"targets": [{"expr": "gitea_oauths{cluster_environment=~\"$cluster_environment\"}", "legendFormat": "{{cluster_environment}}"}]
},
{
"collapsed": false,
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 15},
"title": "Forgejo Logs",
"type": "row"
},
{
"datasource": {"type": "victoriametrics-logs-datasource"},
"gridPos": {"h": 10, "w": 12, "x": 0, "y": 16},
"title": "Forgejo Server Logs",
"type": "logs",
"targets": [{"expr": "{cluster_environment=~\"$cluster_environment\", kubernetes.namespace=\"gitea\"}", "refId": "A"}],
"options": {"showTime": true, "showLabels": true, "wrapLogMessage": true, "enableLogDetails": true, "sortOrder": "Descending"}
},
{
"datasource": {"type": "victoriametrics-logs-datasource"},
"gridPos": {"h": 10, "w": 12, "x": 12, "y": 16},
"title": "Forgejo Errors",
"type": "logs",
"targets": [{"expr": "{cluster_environment=~\"$cluster_environment\", kubernetes.namespace=\"gitea\"} error OR Error OR ERROR OR panic", "refId": "A"}],
"options": {"showTime": true, "showLabels": true, "wrapLogMessage": true, "enableLogDetails": true, "sortOrder": "Descending"}
}
],
"schemaVersion": 39,

View file

@ -203,6 +203,20 @@ spec:
"title": "Failed Backup Jobs (Active)",
"type": "stat",
"targets": [{"expr": "sum by(cluster_environment, job_name) (kube_job_status_failed{job_name=~\"forgejo-s3-backup.*|secrets-backup.*\", cluster_environment=~\"$cluster_environment\"})", "legendFormat": "{{job_name}} ({{cluster_environment}})"}]
},
{
"collapsed": false,
"gridPos": {"h": 1, "w": 24, "x": 0, "y": 24},
"title": "Logs",
"type": "row"
},
{
"datasource": {"type": "victoriametrics-logs-datasource"},
"gridPos": {"h": 10, "w": 24, "x": 0, "y": 25},
"title": "Recent Errors (all namespaces)",
"type": "logs",
"targets": [{"expr": "{cluster_environment=~\"$cluster_environment\"} error OR Error OR ERROR OR panic OR PANIC", "refId": "A"}],
"options": {"showTime": true, "showLabels": true, "showCommonLabels": false, "wrapLogMessage": true, "prettifyLogMessage": false, "enableLogDetails": true, "sortOrder": "Descending", "dedupStrategy": "none"}
}
],
"schemaVersion": 39,