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

grafana: update AUR dashboard (search requests)


* Remove API Requests panel (no values; replaced by goaurrpc dashboard)
* Add panel to visualize new metrics for search requests
* Set default timespan to 1 day (from 30d)

Ref: aurweb@814ccf6b
Signed-off-by: default avatarmoson <moson@archlinux.org>
parent 8addb048
No related branches found
No related tags found
1 merge request!739grafana: update AUR dashboard (search requests)
......@@ -28,7 +28,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"fieldConfig": {
"defaults": {
......@@ -36,6 +36,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
......@@ -91,7 +93,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
......@@ -102,7 +105,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"exemplar": true,
"expr": "rate(http_requests_total{job=\"aurweb\"}[5m])",
......@@ -117,7 +120,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"description": "",
"fieldConfig": {
......@@ -126,6 +129,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
......@@ -181,7 +186,8 @@
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom"
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
......@@ -192,16 +198,31 @@
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(http_api_requests_total{job=\"aurweb\"}[5m])",
"expr": "rate(search_requests_total{job=\"aurweb\"}[5m])",
"interval": "",
"legendFormat": "{{ type }} {{ status }}",
"legendFormat": "cache-{{ cache }}",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "Prometheus"
},
"editorMode": "builder",
"expr": "sum(rate(search_requests_total{job=\"aurweb\"}[5m]))",
"hide": false,
"instant": false,
"legendFormat": "total",
"range": true,
"refId": "B"
}
],
"title": "HTTP API Requests Total",
"title": "Search requests",
"type": "timeseries"
},
{
......@@ -211,7 +232,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"description": "The two different user types, normal and trusted users.",
"fill": 1,
......@@ -240,7 +261,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.5.0-pre",
"pluginVersion": "10.0.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
......@@ -297,7 +318,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"uid": "Prometheus"
},
"description": "The total AUR packages state listing orphan ,ever updated and updated packages.",
"fill": 1,
......@@ -326,7 +347,7 @@
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "8.5.0-pre",
"pluginVersion": "10.0.1",
"pointradius": 2,
"points": false,
"renderer": "flot",
......@@ -377,15 +398,15 @@
}
}
],
"refresh": false,
"schemaVersion": 35,
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-30d",
"from": "now-1d",
"to": "now"
},
"timepicker": {},
......
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