diff --git a/assets/gitea/alerts.yaml b/assets/gitea/alerts.yaml new file mode 100644 index 0000000..19765bd --- /dev/null +++ b/assets/gitea/alerts.yaml @@ -0,0 +1 @@ +null diff --git a/assets/gitea/dashboards/gitea-overview.json b/assets/gitea/dashboards/gitea-overview.json new file mode 100644 index 0000000..e2daf29 --- /dev/null +++ b/assets/gitea/dashboards/gitea-overview.json @@ -0,0 +1,1424 @@ +{ + "__inputs": [ ], + "__requires": [ ], + "annotations": { + "list": [ ] + }, + "editable": false, + "gnetId": null, + "graphTooltip": 1, + "hideControls": false, + "id": null, + "links": [ ], + "panels": [ + { + "collapse": false, + "collapsed": false, + "gridPos": { + "h": 0, + "w": 0, + "x": 0, + "y": 0 + }, + "id": 2, + "panels": [ ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": true, + "title": "General", + "titleSize": "h6", + "type": "row" + }, + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "links": [ ], + "mappings": [ ], + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "none" + } + }, + "gridPos": { + "h": 4, + "w": 16, + "x": 0, + "y": 0 + }, + "id": 3, + "links": [ ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "7", + "targets": [ + { + "expr": "gitea_organizations{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Organizations", + "refId": "A" + }, + { + "expr": "gitea_teams{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Teams", + "refId": "B" + }, + { + "expr": "gitea_users{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Users", + "refId": "C" + }, + { + "expr": "gitea_repositories{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Repositories", + "refId": "D" + }, + { + "expr": "gitea_milestones{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Milestones", + "refId": "E" + }, + { + "expr": "gitea_stars{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Stars", + "refId": "F" + }, + { + "expr": "gitea_releases{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Releases", + "refId": "G" + }, + { + "expr": "gitea_issues_open{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Issues opened", + "refId": "H" + }, + { + "expr": "gitea_issues_closed{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 10, + "legendFormat": "Issues closed", + "refId": "I" + } + ], + "title": "Gitea stats", + "transparent": false, + "type": "stat" + }, + { + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "links": [ ], + "mappings": [ ], + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "s" + } + }, + "gridPos": { + "h": 4, + "w": 8, + "x": 16, + "y": 0 + }, + "id": 4, + "links": [ ], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "last" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "7", + "targets": [ + { + "expr": "time()-process_start_time_seconds{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Uptime", + "transparent": false, + "type": "stat" + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + }, + "custom": { + "fillOpacity": 15, + "lineInterpolation": "smooth" + }, + "unit": "decbytes" + } + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 8, + "x": 0, + "y": 4 + }, + "id": 5, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "nullPointMode": "null", + "options": { + "legend": { + "displayMode": "hidden" + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "process_resident_memory_bytes{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "Memory usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd" + }, + "custom": { + "axisSoftMax": 0, + "axisSoftMin": 0, + "fillOpacity": 15, + "gradientMode": "scheme", + "lineInterpolation": "smooth" + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": ".+" + }, + "properties": [ + { + "id": "max", + "value": 100 + }, + { + "id": "min", + "value": 0 + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 8, + "x": 8, + "y": 4 + }, + "id": 6, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "nullPointMode": "null", + "options": { + "legend": { + "displayMode": "hidden" + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(process_cpu_seconds_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])*100", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "CPU usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + }, + "custom": { + "fillOpacity": 0, + "gradientMode": "scheme", + "lineInterpolation": "smooth" + }, + "unit": "" + }, + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "B" + }, + "properties": [ + { + "id": "custom.lineStyle", + "value": { + "dash": [ + 10, + 10 + ], + "fill": "dash" + } + }, + { + "id": "color", + "value": { + "fixedColor": "red", + "mode": "fixed" + } + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 4 + }, + "id": 7, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "nullPointMode": "null", + "options": { + "legend": { + "displayMode": "hidden" + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ + { + "alias": "/process_max_fds.+/", + "color": "#F2495C", + "dashes": true, + "fill": 0 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "process_open_fds{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "", + "refId": "A" + }, + { + "expr": "process_max_fds{job=~\"$job\", instance=~\"$instance\"}", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "", + "refId": "B" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "File descriptors usage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "collapse": false, + "collapsed": false, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 8, + "panels": [ ], + "repeat": null, + "repeatIteration": null, + "repeatRowId": null, + "showTitle": true, + "title": "Changes", + "titleSize": "h6", + "type": "row" + }, + { + "datasource": "-- Dashboard --", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "links": [ ], + "mappings": [ ], + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "none" + } + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 12 + }, + "id": 9, + "links": [ ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "7", + "targets": [ + { + "panelId": 200, + "refId": "A" + } + ], + "title": "Changes", + "transparent": false, + "type": "stat" + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "barAlignment": -1, + "drawStyle": "bars", + "fillOpacity": 50, + "gradientMode": "hue", + "lineWidth": 0, + "pointSize": 1, + "stacking": { + "group": "A", + "mode": "normal" + } + }, + "noValue": "0" + } + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 12 + }, + "id": 200, + "interval": "$agg_interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "maxDataPoints": 10000, + "nullPointMode": "null", + "options": { + "legend": { + "calcs": [ + "sum" + ] + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "changes(process_start_time_seconds{job=~\"$job\", instance=~\"$instance\"}[$__interval]) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Restarts", + "refId": "A" + }, + { + "expr": "floor(delta(gitea_organizations{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Organizations", + "refId": "B" + }, + { + "expr": "floor(delta(gitea_teams{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Teams", + "refId": "C" + }, + { + "expr": "floor(delta(gitea_users{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Users", + "refId": "D" + }, + { + "expr": "floor(delta(gitea_repositories{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Repositories", + "refId": "E" + }, + { + "expr": "floor(delta(gitea_milestones{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Milestones", + "refId": "F" + }, + { + "expr": "floor(delta(gitea_stars{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Stars", + "refId": "G" + }, + { + "expr": "floor(delta(gitea_releases{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Releases", + "refId": "H" + }, + { + "expr": "floor(delta(gitea_issues_open{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Issues opened", + "refId": "I" + }, + { + "expr": "floor(delta(gitea_issues_closed{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "Issues closed", + "refId": "J" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "datasource": "-- Dashboard --", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "links": [ ], + "mappings": [ ], + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "none" + } + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 20 + }, + "id": 211, + "links": [ ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "7", + "targets": [ + { + "panelId": 210, + "refId": "A" + } + ], + "title": "Issues by repository", + "transparent": false, + "type": "stat" + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "barAlignment": -1, + "drawStyle": "bars", + "fillOpacity": 50, + "gradientMode": "hue", + "lineWidth": 0, + "pointSize": 1, + "stacking": { + "group": "A", + "mode": "normal" + } + }, + "noValue": "0" + } + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 20 + }, + "id": 210, + "interval": "$agg_interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "maxDataPoints": 10000, + "nullPointMode": "null", + "options": { + "legend": { + "calcs": [ + "sum" + ] + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "floor(increase(gitea_issues_by_repository{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{ repository }}", + "refId": "A" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + }, + { + "datasource": "-- Dashboard --", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "links": [ ], + "mappings": [ ], + "thresholds": { + "mode": "absolute", + "steps": [ ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "bug" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#ee0701", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "duplicate" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cccccc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "invalid" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#e6e6e6", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "enhancement" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#84b6eb", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "help wanted" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#128a0c", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "question" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc317c", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 28 + }, + "id": 221, + "links": [ ], + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "sum" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "7", + "targets": [ + { + "panelId": 220, + "refId": "A" + } + ], + "title": "Issues by labels", + "transparent": false, + "type": "stat" + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "$datasource", + "fieldConfig": { + "defaults": { + "custom": { + "barAlignment": -1, + "drawStyle": "bars", + "fillOpacity": 50, + "gradientMode": "hue", + "lineWidth": 0, + "pointSize": 1, + "stacking": { + "group": "A", + "mode": "normal" + } + }, + "noValue": "0" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "bug" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#ee0701", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "duplicate" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cccccc", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "invalid" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#e6e6e6", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "enhancement" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#84b6eb", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "help wanted" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#128a0c", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byRegexp", + "options": "question" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#cc317c", + "mode": "fixed" + } + } + ] + } + ] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 28 + }, + "id": 220, + "interval": "$agg_interval", + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": false, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "maxDataPoints": 10000, + "nullPointMode": "null", + "options": { + "legend": { + "calcs": [ + "sum" + ] + }, + "tooltip": { + "mode": "multi" + } + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "floor(increase(gitea_issues_by_label{job=~\"$job\", instance=~\"$instance\"}[$__interval])) > 0", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "{{ label }}", + "refId": "A" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "timeseries", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] + } + ], + "refresh": "1m", + "rows": [ ], + "schemaVersion": 14, + "style": "dark", + "tags": [ + "gitea" + ], + "templating": { + "list": [ + { + "current": { + "text": "Prometheus", + "value": "Prometheus" + }, + "hide": 0, + "label": "Data Source", + "name": "datasource", + "options": [ ], + "query": "prometheus", + "refresh": 1, + "regex": "", + "type": "datasource" + }, + { + "allValue": ".+", + "datasource": "$datasource", + "hide": 0, + "label": "job", + "multi": true, + "name": "job", + "options": [ ], + "query": "label_values(gitea_organizations, job)", + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "allValue": ".+", + "datasource": "$datasource", + "hide": 0, + "label": "instance", + "multi": true, + "name": "instance", + "options": [ ], + "query": "label_values(gitea_organizations{job=\"$job\"}, instance)", + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "auto": true, + "auto_min": "1m", + "hide": 0, + "label": "aggregation interval", + "name": "agg_interval", + "query": "1m,10m,1h,1d,7d", + "type": "interval" + } + ] + }, + "time": { + "from": "now-1h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "default", + "title": "Gitea Overview", + "uid": "gitea-overview", + "version": 0 +} diff --git a/assets/gitea/rules.yaml b/assets/gitea/rules.yaml new file mode 100644 index 0000000..19765bd --- /dev/null +++ b/assets/gitea/rules.yaml @@ -0,0 +1 @@ +null diff --git a/mixins.json b/mixins.json index 82959b3..4aec91c 100644 --- a/mixins.json +++ b/mixins.json @@ -511,6 +511,11 @@ "name": "wso2-streaming-integrator", "source": "https://github.com/grafana/jsonnet-libs", "subdir": "wso2-streaming-integrator-mixin" + }, + { + "name": "gitea", + "source": "https://github.com/go-gitea/gitea", + "subdir": "contrib/gitea-monitoring-mixin" } ] } diff --git a/site/content/gitea/_index.md b/site/content/gitea/_index.md new file mode 100644 index 0000000..475daf3 --- /dev/null +++ b/site/content/gitea/_index.md @@ -0,0 +1,17 @@ +--- +title: gitea +--- + +## Overview + + + +{{< panel style="danger" >}} +Jsonnet source code is available at [github.com/go-gitea/gitea](https://github.com/go-gitea/gitea/tree/master/contrib/gitea-monitoring-mixin) +{{< /panel >}} + +## Dashboards +Following dashboards are generated from mixins and hosted on github: + + +- [gitea-overview](https://github.com/monitoring-mixins/website/blob/master/assets/gitea/dashboards/gitea-overview.json) diff --git a/site/static/mixins.json b/site/static/mixins.json index 82959b3..4aec91c 100644 --- a/site/static/mixins.json +++ b/site/static/mixins.json @@ -511,6 +511,11 @@ "name": "wso2-streaming-integrator", "source": "https://github.com/grafana/jsonnet-libs", "subdir": "wso2-streaming-integrator-mixin" + }, + { + "name": "gitea", + "source": "https://github.com/go-gitea/gitea", + "subdir": "contrib/gitea-monitoring-mixin" } ] }