# 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" }