Replace monolithic dashboards-configmap.yaml with 10 dedicated files, one per Grafana folder: Ingress, Observability, Infrastructure, Storage, Identity, DevTools, Search, Media, La Suite, Communications. New dashboards for Longhorn, PostgreSQL/CNPG, Cert-Manager, SeaweedFS, Hydra, Kratos, Gitea, OpenSearch, LiveKit, La Suite golden signals (Linkerd metrics), Matrix, and Email Pipeline.
90 lines
2.5 KiB
YAML
90 lines
2.5 KiB
YAML
# Grafana dashboard ConfigMaps — DevTools
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-dashboard-gitea
|
|
namespace: monitoring
|
|
labels:
|
|
grafana_dashboard: "1"
|
|
annotations:
|
|
grafana_folder: "DevTools"
|
|
data:
|
|
gitea.json: |
|
|
{
|
|
"annotations": { "list": [] },
|
|
"editable": true,
|
|
"panels": [
|
|
{
|
|
"title": "Repositories",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 8, "x": 0, "y": 0 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{ "expr": "gitea_repositories", "legendFormat": "repos" }
|
|
]
|
|
},
|
|
{
|
|
"title": "Users",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 8, "x": 8, "y": 0 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{ "expr": "gitea_users", "legendFormat": "users" }
|
|
]
|
|
},
|
|
{
|
|
"title": "Issues",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 8, "x": 16, "y": 0 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{ "expr": "gitea_issues", "legendFormat": "issues" }
|
|
]
|
|
},
|
|
{
|
|
"title": "Go Goroutines",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 4 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{
|
|
"expr": "go_goroutines{job=~\".*gitea.*\"}",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Memory Usage",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 4 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{
|
|
"expr": "process_resident_memory_bytes{job=~\".*gitea.*\"}",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": { "defaults": { "unit": "bytes" } }
|
|
},
|
|
{
|
|
"title": "CPU Usage",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 4 },
|
|
"datasource": { "uid": "prometheus" },
|
|
"targets": [
|
|
{
|
|
"expr": "rate(process_cpu_seconds_total{job=~\".*gitea.*\"}[5m])",
|
|
"legendFormat": "{{instance}}"
|
|
}
|
|
],
|
|
"fieldConfig": { "defaults": { "unit": "short" } }
|
|
}
|
|
],
|
|
"schemaVersion": 39,
|
|
"tags": ["gitea", "devtools"],
|
|
"time": { "from": "now-1h", "to": "now" },
|
|
"title": "Gitea",
|
|
"uid": "gitea"
|
|
}
|