feat(observability): ✨ add VictoriaLogs log panels to platform, forgejo, argocd dashboards
This commit is contained in:
parent
bcf583a055
commit
b6fbd3f6eb
3 changed files with 50 additions and 0 deletions
|
|
@ -111,6 +111,20 @@ spec:
|
||||||
"title": "Reconciliation Rate",
|
"title": "Reconciliation Rate",
|
||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"targets": [{"expr": "sum(rate(argocd_app_reconcile_count{cluster_environment=~\"$cluster_environment\"}[5m])) by (namespace)", "legendFormat": "{{namespace}}"}]
|
"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,
|
"schemaVersion": 39,
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,28 @@ spec:
|
||||||
"title": "OAuth Apps",
|
"title": "OAuth Apps",
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"targets": [{"expr": "gitea_oauths{cluster_environment=~\"$cluster_environment\"}", "legendFormat": "{{cluster_environment}}"}]
|
"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,
|
"schemaVersion": 39,
|
||||||
|
|
|
||||||
|
|
@ -203,6 +203,20 @@ spec:
|
||||||
"title": "Failed Backup Jobs (Active)",
|
"title": "Failed Backup Jobs (Active)",
|
||||||
"type": "stat",
|
"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}})"}]
|
"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,
|
"schemaVersion": 39,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue