Files
sbbb/base/monitoring/dashboards-devtools.yaml

300 lines
10 KiB
YAML
Raw Normal View History

# 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,
"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": 4, "x": 0, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_repositories{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Users",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_users{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"title": "Organizations",
"type": "stat",
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
"datasource": { "uid": "prometheus" },
"targets": [
{ "expr": "gitea_organizations{job=\"gitea-http\"}", "legendFormat": "", "instant": true }
]
},
{
"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": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"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": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"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" } }
},
{
"title": "CPU Usage",
"type": "timeseries",
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 16 },
"datasource": { "uid": "prometheus" },
"targets": [
{
"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"
}