diff --git a/clusters/cl01tl/monitoring/grafana-operator/templates/grafana-dashboard.yaml b/clusters/cl01tl/monitoring/grafana-operator/templates/grafana-dashboard.yaml index 22be47f19..71aaf3cb3 100644 --- a/clusters/cl01tl/monitoring/grafana-operator/templates/grafana-dashboard.yaml +++ b/clusters/cl01tl/monitoring/grafana-operator/templates/grafana-dashboard.yaml @@ -13,8 +13,10 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/ceph.json --- @@ -33,8 +35,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/coredns.json --- @@ -53,8 +56,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/etcd.json --- @@ -73,8 +77,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/loki.json --- @@ -93,8 +98,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/node-full.json --- @@ -113,8 +119,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-system - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/system/node-short.json --- @@ -133,8 +140,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/argocd.json --- @@ -153,8 +161,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/blocky.json --- @@ -173,8 +182,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/cert-manager.json --- @@ -193,8 +203,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/cloudnative-pg.json --- @@ -213,8 +224,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/descheduler.json --- @@ -233,8 +245,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/grafana-operator.json --- @@ -253,8 +266,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/harbor.json @@ -274,8 +288,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/speedtest-exporter.json --- @@ -294,8 +309,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/spegel.json --- @@ -314,8 +330,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/traefik.json --- @@ -334,8 +351,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/trivy.json --- @@ -354,8 +372,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/unpoller.json --- @@ -374,8 +393,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-service - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/service/volsync.json --- @@ -394,8 +414,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-platform - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/platform/authentik.json --- @@ -414,1531 +435,11 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h + contentCacheDuration: 1h folderUID: grafana-folder-platform - resyncPeriod: 30s - # url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/platform/gitea.json - json: | - { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": false, - "graphTooltip": 0, - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 37, - "panels": [], - "title": "General", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-BlPu", - "seriesBy": "last" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 70, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 1, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 7, - "x": 0, - "y": 1 - }, - "id": 31, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "hideZeros": false, - "mode": "none", - "sort": "none" - } - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "code", - "exemplar": false, - "expr": "process_resident_memory_bytes{job=~\"gitea\",namespace=~\"$namespace\"}", - "instant": false, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A" - } - ], - "title": "Memory Usage", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-BlPu" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 70, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 0, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 7, - "x": 7, - "y": 1 - }, - "id": 32, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "tooltip": { - "hideZeros": false, - "mode": "none", - "sort": "none" - } - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "code", - "exemplar": false, - "expr": "irate(process_cpu_seconds_total{job=~\"gitea\",namespace=~\"$namespace\"}[$resolution])", - "instant": false, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A" - } - ], - "title": "CPU Usage", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 7, - "x": 14, - "y": 1 - }, - "id": 33, - "interval": "$resolution", - "options": { - "alertThreshold": true, - "legend": { - "calcs": ["lastNotNull"], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "code", - "exemplar": false, - "expr": "(\n sum without(instance, node) (topk(1, (kubelet_volume_stats_capacity_bytes{job=\"kubelet\", metrics_path=\"/metrics\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n -\n sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{job=\"kubelet\", metrics_path=\"/metrics\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n)\n", - "format": "time_series", - "instant": false, - "intervalFactor": 1, - "legendFormat": "Used Space", - "range": true, - "refId": "A" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "code", - "exemplar": false, - "expr": "sum without(instance, node) (topk(1, (kubelet_volume_stats_available_bytes{job=\"kubelet\", metrics_path=\"/metrics\", namespace=\"$namespace\", persistentvolumeclaim=\"$volume\"})))\n", - "format": "time_series", - "instant": false, - "intervalFactor": 1, - "legendFormat": "Free Space", - "range": true, - "refId": "B" - } - ], - "title": "PVC Storage", - "transparent": true, - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - }, - "unit": "dtdurations" - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 3, - "x": 0, - "y": 8 - }, - "id": 34, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "code", - "expr": "time() - max(process_start_time_seconds{job=\"gitea\",namespace=~\"$namespace\"})", - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A" - } - ], - "title": "Uptime", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 3, - "y": 8 - }, - "id": 21, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "max(gitea_organizations)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Organizations", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 6, - "y": 8 - }, - "id": 16, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_teams)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Teams", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 9, - "y": 8 - }, - "id": 24, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_users)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Users", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 12, - "y": 8 - }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_milestones)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Milestones", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 15, - "y": 8 - }, - "id": 17, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_stars)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Stars", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "blue" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 18, - "y": 8 - }, - "id": 25, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_watches)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Watches", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 3, - "y": 11 - }, - "id": 18, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_repositories)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Repositories", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "locale" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 6, - "y": 11 - }, - "id": 19, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_releases)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Releases", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 9, - "y": 11 - }, - "id": 5, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "max(max_over_time(gitea_issues_open[10m]))", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Issues Open", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "locale" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 12, - "y": 11 - }, - "id": 35, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "max(gitea_issues_closed)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Issues Closed", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 15, - "y": 11 - }, - "id": 10, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_labels)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Labels", - "type": "stat" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "locale" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 18, - "y": 11 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": ["lastNotNull"], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "sum(gitea_comments)", - "fullMetaSearch": false, - "includeNullMetadata": true, - "interval": "$resolution", - "legendFormat": "", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Comments", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 14 - }, - "id": 39, - "panels": [], - "title": "Issues", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 10, - "x": 0, - "y": 15 - }, - "id": 41, - "options": { - "legend": { - "calcs": ["last"], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Last", - "sortDesc": false - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "builder", - "exemplar": false, - "expr": "gitea_issues_by_repository", - "format": "time_series", - "instant": false, - "legendFormat": "{{`{{repository}}`}}", - "range": true, - "refId": "A" - } - ], - "title": "Issues by Repository", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "opacity", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineStyle": { - "fill": "solid" - }, - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 11, - "x": 10, - "y": 15 - }, - "id": 42, - "options": { - "legend": { - "calcs": ["last"], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.0.0", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "editorMode": "builder", - "exemplar": false, - "expr": "gitea_issues_by_label", - "format": "time_series", - "instant": false, - "legendFormat": "{{`{{label}}`}}", - "range": true, - "refId": "A" - } - ], - "title": "Issues by Label", - "type": "timeseries" - } - ], - "preload": true, - "tags": ["platform", "code"], - "templating": { - "list": [ - { - "current": { - "text": "Prometheus", - "value": "kube-prometheus-stack" - }, - "includeAll": false, - "label": "Datasource", - "name": "DS_PROMETHEUS", - "options": [], - "query": "prometheus", - "refresh": 1, - "regex": "", - "type": "datasource" - }, - { - "current": { - "text": "gitea", - "value": "gitea" - }, - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "definition": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", namespace=~\"gitea\"},namespace)", - "includeAll": false, - "label": "Gitea Namespace", - "name": "namespace", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(kube_namespace_status_phase{job=\"kube-state-metrics\", namespace=~\"gitea\"},namespace)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "sort": 1, - "type": "query" - }, - { - "current": { - "text": "gitea-shared-storage", - "value": "gitea-shared-storage" - }, - "datasource": { - "type": "prometheus", - "uid": "kube-prometheus-stack" - }, - "definition": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\", namespace=\"$namespace\"},persistentvolumeclaim)", - "description": "Name of PVC Volume for Gitea", - "includeAll": false, - "label": "Gitea PVC Name", - "name": "volume", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(kubelet_volume_stats_capacity_bytes{job=\"kubelet\", namespace=\"$namespace\"},persistentvolumeclaim)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - }, - { - "current": { - "text": "5m", - "value": "5m" - }, - "includeAll": false, - "name": "resolution", - "options": [ - { - "selected": false, - "text": "1m", - "value": "1m" - }, - { - "selected": true, - "text": "5m", - "value": "5m" - }, - { - "selected": false, - "text": "15m", - "value": "15m" - }, - { - "selected": false, - "text": "30", - "value": "30" - }, - { - "selected": false, - "text": "1h", - "value": "1h" - }, - { - "selected": false, - "text": "2h", - "value": "2h" - }, - { - "selected": false, - "text": "1d", - "value": "1d" - } - ], - "query": "1m, 5m,15m,30,1h,2h,1d", - "type": "custom" - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "timezone": "browser", - "title": "Gitea", - "uid": "nNq1Iw5Gz", - "version": 2 - } + resyncPeriod: 1h + url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/platform/gitea.json --- apiVersion: grafana.integreatly.org/v1beta1 @@ -1956,8 +457,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-platform - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/platform/qbittorrent.json --- @@ -1976,8 +478,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-platform - resyncPeriod: 30s + resyncPeriod: 30m url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/platform/vault.json --- @@ -1996,8 +499,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-application - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/application/immich.json --- @@ -2016,8 +520,9 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-application - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/application/radarr.json --- @@ -2036,6 +541,7 @@ spec: instanceSelector: matchLabels: app: grafana-main + contentCacheDuration: 1h folderUID: grafana-folder-application - resyncPeriod: 30s + resyncPeriod: 1h url: http://gitea-http.gitea:3000/alexlebens/grafana-dashboards/raw/branch/main/dashboards/application/sonarr.json