368 lines
12 KiB
YAML
368 lines
12 KiB
YAML
|
|
apiVersion: v1
|
||
|
|
kind: ConfigMap
|
||
|
|
metadata:
|
||
|
|
name: auth-proxy-dashboard
|
||
|
|
labels:
|
||
|
|
grafana_dashboard: "1"
|
||
|
|
data:
|
||
|
|
auth-proxy.json: |-
|
||
|
|
{
|
||
|
|
"annotations": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"builtIn": 1,
|
||
|
|
"datasource": {
|
||
|
|
"type": "grafana",
|
||
|
|
"uid": "-- Grafana --"
|
||
|
|
},
|
||
|
|
"enable": true,
|
||
|
|
"hide": true,
|
||
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
||
|
|
"name": "Annotations & Alerts",
|
||
|
|
"type": "dashboard"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"editable": true,
|
||
|
|
"fiscalYearStartMonth": 0,
|
||
|
|
"graphTooltip": 1,
|
||
|
|
"id": null,
|
||
|
|
"links": [],
|
||
|
|
"liveNow": false,
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 },
|
||
|
|
"id": 1,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "value",
|
||
|
|
"graphMode": "area",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "routes_loaded_total",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Loaded Routes",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 0 },
|
||
|
|
"id": 2,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "value",
|
||
|
|
"graphMode": "area",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "sum(increase(auth_requests_total[$__rate_interval]))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Auth Requests (total)",
|
||
|
|
"type": "stat",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "thresholds" },
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "green", "value": null }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 12, "y": 0 },
|
||
|
|
"id": 3,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "value",
|
||
|
|
"graphMode": "area",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "sum(increase(auth_requests_total{status=\"403\"}[$__rate_interval]))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Forbidden (403)",
|
||
|
|
"type": "stat",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "thresholds" },
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "green", "value": null },
|
||
|
|
{ "color": "red", "value": 1 }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 4, "w": 6, "x": 18, "y": 0 },
|
||
|
|
"id": 4,
|
||
|
|
"options": {
|
||
|
|
"colorMode": "value",
|
||
|
|
"graphMode": "area",
|
||
|
|
"justifyMode": "auto",
|
||
|
|
"orientation": "auto",
|
||
|
|
"reduceOptions": { "calc": "lastNotNull", "fields": "", "values": false },
|
||
|
|
"textMode": "auto"
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "sum(increase(callback_requests_total{result=\"success\"}[$__rate_interval]))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Successful Logins",
|
||
|
|
"type": "stat",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "thresholds" },
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [
|
||
|
|
{ "color": "green", "value": null }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 },
|
||
|
|
"id": 5,
|
||
|
|
"options": {
|
||
|
|
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true },
|
||
|
|
"tooltip": { "mode": "single", "sort": "none" }
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "sum by (status) (rate(auth_requests_total[$__rate_interval]))",
|
||
|
|
"legendFormat": "{{status}}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Auth Request Rate by Status",
|
||
|
|
"type": "timeseries",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "palette-classic" },
|
||
|
|
"custom": {
|
||
|
|
"axisBorderShow": false,
|
||
|
|
"axisCenteredZero": false,
|
||
|
|
"axisColorMode": "text",
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 10,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
||
|
|
"insertNulls": false,
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 2,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": { "type": "linear" },
|
||
|
|
"showPoints": "auto",
|
||
|
|
"spanNulls": false,
|
||
|
|
"stacking": { "group": "A", "mode": "none" },
|
||
|
|
"thresholdsStyle": { "mode": "off" }
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [ { "color": "green", "value": null } ]
|
||
|
|
},
|
||
|
|
"unit": "reqps"
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 },
|
||
|
|
"id": 6,
|
||
|
|
"options": {
|
||
|
|
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true },
|
||
|
|
"tooltip": { "mode": "single", "sort": "none" }
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "auth_request_duration_seconds{quantile=\"0.5\"}",
|
||
|
|
"legendFormat": "p50",
|
||
|
|
"refId": "A"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "auth_request_duration_seconds{quantile=\"0.95\"}",
|
||
|
|
"legendFormat": "p95",
|
||
|
|
"refId": "B"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "auth_request_duration_seconds{quantile=\"0.99\"}",
|
||
|
|
"legendFormat": "p99",
|
||
|
|
"refId": "C"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Auth Request Duration (p50, p95, p99)",
|
||
|
|
"type": "timeseries",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "palette-classic" },
|
||
|
|
"custom": {
|
||
|
|
"axisBorderShow": false,
|
||
|
|
"axisCenteredZero": false,
|
||
|
|
"axisColorMode": "text",
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "line",
|
||
|
|
"fillOpacity": 0,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
||
|
|
"insertNulls": false,
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 2,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": { "type": "linear" },
|
||
|
|
"showPoints": "auto",
|
||
|
|
"spanNulls": false,
|
||
|
|
"stacking": { "group": "A", "mode": "none" },
|
||
|
|
"thresholdsStyle": { "mode": "off" }
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [ { "color": "green", "value": null } ]
|
||
|
|
},
|
||
|
|
"unit": "s"
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 },
|
||
|
|
"id": 7,
|
||
|
|
"options": {
|
||
|
|
"legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true },
|
||
|
|
"tooltip": { "mode": "single", "sort": "none" }
|
||
|
|
},
|
||
|
|
"pluginVersion": "10.0.0",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
||
|
|
"expr": "sum by (result) (rate(callback_requests_total[$__rate_interval]))",
|
||
|
|
"legendFormat": "{{result}}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "OIDC Callback Rate by Result",
|
||
|
|
"type": "timeseries",
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": { "mode": "palette-classic" },
|
||
|
|
"custom": {
|
||
|
|
"axisBorderShow": false,
|
||
|
|
"axisCenteredZero": false,
|
||
|
|
"axisColorMode": "text",
|
||
|
|
"axisLabel": "",
|
||
|
|
"axisPlacement": "auto",
|
||
|
|
"barAlignment": 0,
|
||
|
|
"drawStyle": "bars",
|
||
|
|
"fillOpacity": 50,
|
||
|
|
"gradientMode": "none",
|
||
|
|
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
||
|
|
"insertNulls": false,
|
||
|
|
"lineInterpolation": "linear",
|
||
|
|
"lineWidth": 1,
|
||
|
|
"pointSize": 5,
|
||
|
|
"scaleDistribution": { "type": "linear" },
|
||
|
|
"showPoints": "auto",
|
||
|
|
"spanNulls": false,
|
||
|
|
"stacking": { "group": "A", "mode": "normal" },
|
||
|
|
"thresholdsStyle": { "mode": "off" }
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"mode": "absolute",
|
||
|
|
"steps": [ { "color": "green", "value": null } ]
|
||
|
|
},
|
||
|
|
"unit": "reqps"
|
||
|
|
},
|
||
|
|
"overrides": []
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"refresh": "30s",
|
||
|
|
"schemaVersion": 38,
|
||
|
|
"style": "dark",
|
||
|
|
"tags": [
|
||
|
|
"auth-proxy",
|
||
|
|
"rsauth2-proxy"
|
||
|
|
],
|
||
|
|
"templating": {
|
||
|
|
"list": [
|
||
|
|
{
|
||
|
|
"current": {
|
||
|
|
"selected": false,
|
||
|
|
"text": "Prometheus",
|
||
|
|
"value": "Prometheus"
|
||
|
|
},
|
||
|
|
"hide": 0,
|
||
|
|
"includeAll": false,
|
||
|
|
"multi": false,
|
||
|
|
"name": "datasource",
|
||
|
|
"options": [],
|
||
|
|
"query": "prometheus",
|
||
|
|
"refresh": 1,
|
||
|
|
"regex": "",
|
||
|
|
"skipUrlSync": false,
|
||
|
|
"type": "datasource"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"time": {
|
||
|
|
"from": "now-1h",
|
||
|
|
"to": "now"
|
||
|
|
},
|
||
|
|
"timepicker": {},
|
||
|
|
"timezone": "",
|
||
|
|
"title": "Auth Proxy (rsauth2-proxy)",
|
||
|
|
"uid": "auth-proxy-metrics",
|
||
|
|
"version": 1
|
||
|
|
}
|