Skip to content
Snippets Groups Projects
Verified Commit 1b666015 authored by Mario Oenning's avatar Mario Oenning
Browse files

grafana: Add requests to aurweb dashboard


Add timeseries visualizations for number of requests by status and type.

Convert "graph" vis. types to "timeseries" for Users and Packages.
("graph" is deprecated)

Signed-off-by: default avatarmoson <moson@archlinux.org>
parent 8e6d5474
No related branches found
No related tags found
1 merge request!753grafana: Add requests to aurweb dashboard
...@@ -226,176 +226,392 @@ ...@@ -226,176 +226,392 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "Prometheus" "uid": "Prometheus"
}, },
"description": "The two different user types, normal and trusted users.", "description": "Number of AUR requests by status",
"fill": 1, "fieldConfig": {
"fillGradient": 0, "defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 9, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 14 "y": 14
}, },
"hiddenSeries": false, "id": 11,
"id": 4,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
}, },
"percentage": false, "pluginVersion": "10.0.3",
"pluginVersion": "10.0.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"exemplar": true, "datasource": {
"expr": "aur_users", "type": "prometheus",
"interval": "", "uid": "Prometheus"
"legendFormat": "{{ type }}", },
"queryType": "randomWalk", "editorMode": "builder",
"expr": "sum by(status) (aur_requests)",
"instant": false,
"legendFormat": "{{status}}",
"range": true,
"refId": "A" "refId": "A"
} }
], ],
"thresholds": [], "title": "Requests by status",
"timeRegions": [], "type": "timeseries"
"title": "Users", },
"tooltip": { {
"shared": true, "datasource": {
"sort": 0, "type": "prometheus",
"value_type": "individual" "uid": "Prometheus"
},
"description": "Number of AUR requests by type",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": 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",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
}, },
"type": "graph", "gridPos": {
"xaxis": { "h": 10,
"mode": "time", "w": 24,
"show": true, "x": 0,
"values": [] "y": 24
}, },
"yaxes": [ "id": 12,
{ "options": {
"$$hashKey": "object:140", "legend": {
"format": "short", "calcs": [],
"logBase": 1, "displayMode": "list",
"show": true "placement": "bottom",
"showLegend": true
}, },
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "10.0.3",
"targets": [
{ {
"$$hashKey": "object:141", "datasource": {
"format": "short", "type": "prometheus",
"logBase": 1, "uid": "Prometheus"
"show": true },
"editorMode": "builder",
"expr": "sum by(type) (aur_requests)",
"instant": false,
"legendFormat": "{{type}}",
"range": true,
"refId": "A"
} }
], ],
"yaxis": { "title": "Requests by type",
"align": false "type": "timeseries"
}
}, },
{ {
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "Prometheus" "uid": "Prometheus"
}, },
"description": "The total AUR packages state listing orphan ,ever updated and updated packages.", "description": "The two different user types, normal and trusted users.",
"fill": 1, "fieldConfig": {
"fillGradient": 0, "defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 11, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 23 "y": 34
}, },
"hiddenSeries": false, "id": 4,
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": { "options": {
"alertThreshold": true "legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
}, },
"percentage": false, "pluginVersion": "10.0.3",
"pluginVersion": "10.0.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [ "targets": [
{ {
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"exemplar": true, "exemplar": true,
"expr": "aur_packages ", "expr": "aur_users",
"interval": "", "interval": "",
"legendFormat": "{{ state }}", "legendFormat": "{{ type }}",
"queryType": "randomWalk", "queryType": "randomWalk",
"refId": "A" "refId": "A"
} }
], ],
"thresholds": [], "title": "Users",
"timeRegions": [], "type": "timeseries"
"title": "Packages", },
"tooltip": { {
"shared": true, "datasource": {
"sort": 0, "type": "prometheus",
"value_type": "individual" "uid": "Prometheus"
}, },
"type": "graph", "description": "The total AUR packages state listing orphan ,ever updated and updated packages.",
"xaxis": { "fieldConfig": {
"mode": "time", "defaults": {
"show": true, "color": {
"values": [] "mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"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",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
}, },
"yaxes": [ "gridPos": {
{ "h": 10,
"$$hashKey": "object:58", "w": 24,
"format": "short", "x": 0,
"logBase": 1, "y": 44
"show": true },
"id": 2,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
}, },
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.0.3",
"targets": [
{ {
"$$hashKey": "object:59", "datasource": {
"format": "short", "type": "prometheus",
"logBase": 1, "uid": "Prometheus"
"show": true },
"exemplar": true,
"expr": "aur_packages ",
"interval": "",
"legendFormat": "{{ state }}",
"queryType": "randomWalk",
"refId": "A"
} }
], ],
"yaxis": { "title": "Packages",
"align": false "type": "timeseries"
}
} }
], ],
"refresh": "", "refresh": "",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment