feat(monitoring): expanded dashboards for all services

Enriched dashboards for DevTools (Gitea), Identity (Hydra/Kratos),
Infrastructure (Longhorn, PostgreSQL, cert-manager, OpenBao),
Ingress (Pingora), and Storage (SeaweedFS).
This commit is contained in:
2026-03-25 17:58:51 +00:00
parent 9ee40aaa69
commit eab91eb85d
5 changed files with 1278 additions and 283 deletions

View File

@@ -14,55 +14,221 @@ data:
{
"annotations": { "list": [] },
"editable": true,
"graphTooltip": 1,
"panels": [
{
"title": "Overview",
"type": "row",
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
"collapsed": false
},
{
"title": "Repositories",
"type": "stat",
"gridPos": { "h": 4, "w": 8, "x": 0, "y": 0 },
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_repositories", "legendFormat": "repos" }
{ "expr": "gitea_repositories{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Users",
"type": "stat",
"gridPos": { "h": 4, "w": 8, "x": 8, "y": 0 },
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_users", "legendFormat": "users" }
{ "expr": "gitea_users{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Issues",
"title": "Organizations",
"type": "stat",
"gridPos": { "h": 4, "w": 8, "x": 16, "y": 0 },
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_issues", "legendFormat": "issues" }
{ "expr": "gitea_organizations{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Go Goroutines",
"title": "Teams",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_teams{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Stars",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_stars{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Webhooks",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_webhooks{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Issues & Activity",
"type": "row",
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 },
"collapsed": false
},
{
"title": "Open Issues",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_issues_open{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
],
"fieldConfig": { "defaults": { "thresholds": { "steps": [{"color":"green","value":null},{"color":"yellow","value":50},{"color":"red","value":200}] } } }
},
{
"title": "Closed Issues",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_issues_closed{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Total Issues",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_issues{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Releases",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_releases{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Milestones",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_milestones{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Comments",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 6 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_comments{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Collaboration",
"type": "row",
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 10 },
"collapsed": false
},
{
"title": "Follows",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_follows{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Watches",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_watches{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Labels",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_labels{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Public Keys",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_publickeys{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "OAuth Sources",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_oauths{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Mirrors",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 11 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_mirrors{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Runtime",
"type": "row",
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 15 },
"collapsed": false
},
{
"title": "Goroutines",
"type": "timeseries",
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 4 },
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"expr": "go_goroutines{job=~\".*gitea.*\"}",
"expr": "go_goroutines{job=\"gitea-http\"}",
"legendFormat": "{{instance}}"
}
]
],
"fieldConfig": { "defaults": { "unit": "short" } }
},
{
"title": "Memory Usage",
"type": "timeseries",
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 4 },
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"expr": "process_resident_memory_bytes{job=~\".*gitea.*\"}",
"legendFormat": "{{instance}}"
"expr": "process_resident_memory_bytes{job=\"gitea-http\"}",
"legendFormat": "RSS {{instance}}"
},
{
"expr": "go_memstats_alloc_bytes{job=\"gitea-http\"}",
"legendFormat": "Go alloc {{instance}}"
}
],
"fieldConfig": { "defaults": { "unit": "bytes" } }
@@ -70,19 +236,63 @@ data:
{
"title": "CPU Usage",
"type": "timeseries",
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 4 },
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"expr": "rate(process_cpu_seconds_total{job=~\".*gitea.*\"}[5m])",
"expr": "rate(process_cpu_seconds_total{job=\"gitea-http\"}[5m])",
"legendFormat": "{{instance}}"
}
],
"fieldConfig": { "defaults": { "unit": "short" } }
},
{
"title": "Background Tasks",
"type": "row",
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 },
"collapsed": false
},
{
"title": "Pending Hook Tasks",
"type": "stat",
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 25 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_hooktasks{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
],
"fieldConfig": { "defaults": { "thresholds": { "steps": [{"color":"green","value":null},{"color":"yellow","value":10},{"color":"red","value":50}] } } }
},
{
"title": "Update Tasks",
"type": "stat",
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 25 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_updatetasks{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Attachments",
"type": "stat",
"gridPos": { "h": 4, "w": 6, "x": 12, "y": 25 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_attachments{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Login Sources",
"type": "stat",
"gridPos": { "h": 4, "w": 6, "x": 18, "y": 25 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_loginsources{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
}
],
"schemaVersion": 39,
"tags": ["gitea", "devtools"],
"templating": { "list": [] },
"time": { "from": "now-1h", "to": "now" },
"title": "Gitea",
"uid": "gitea"