mirror of
https://github.com/monitoring-mixins/website.git
synced 2024-12-15 17:50:48 +00:00
1424 lines
38 KiB
JSON
1424 lines
38 KiB
JSON
{
|
|
"__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
|
|
}
|