Skip to content

Commit

Permalink
Tuning the dashboard to have more information on the percentiles diag…
Browse files Browse the repository at this point in the history
…ram, updating client credentials diagram
  • Loading branch information
ahus1 committed Apr 11, 2024
1 parent 043d8ae commit a5b20a1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -365,8 +365,8 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(rate(http_server_requests_seconds_bucket{uri=~\"(/realms/{realm}/protocol/{protocol}/token|/realms/{realm}/protocol/{protocol}/auth|/realms/{realm}/protocol/{protocol}/logout|realms/{realm}/login-actions/authenticate)\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) by (le,uri))",
"legendFormat": "__auto",
"expr": "histogram_quantile(0.99, sum(rate(http_server_requests_seconds_bucket{uri=~\"/realms/{realm}/protocol/{protocol}/(token|auth)|REDIRECTION|/realms/{realm}/login-actions/authenticate\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) by (le,uri))",
"legendFormat": "{{uri}}",
"range": true,
"refId": "A"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -131,7 +133,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(http_server_duration_seconds_bucket{http_route=\"/realms/{realm}/protocol/{protocol}/token\", le=\"0.05\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) without (le) / rate(http_server_duration_count{http_route=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])",
"expr": "sum(rate(http_server_requests_seconds_bucket{uri=\"/realms/{realm}/protocol/{protocol}/token\", le=\"0.05\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) without (le) / rate(http_server_requests_seconds_count{uri=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])",
"format": "time_series",
"hide": false,
"instant": false,
Expand All @@ -145,7 +147,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "rate(vendor_statistics_hits{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]) / (rate(vendor_statistics_hits{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]) + rate(vendor_statistics_misses{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]))",
"expr": "rate(vendor_statistics_hits{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]) / (rate(vendor_statistics_hits{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]) + rate(vendor_statistics_misses{cache=\"realms\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]))",
"hide": false,
"legendFormat": "Realms cache hit ratio",
"range": true,
Expand All @@ -157,7 +159,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "rate(vendor_statistics_hits{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]) / (rate(vendor_statistics_hits{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]) + rate(vendor_statistics_misses{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\", job=\"${namespace}/keycloak-otel\"}[2m]))",
"expr": "rate(vendor_statistics_hits{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]) / (rate(vendor_statistics_hits{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]) + rate(vendor_statistics_misses{cache=\"users\", namespace=\"${namespace}\", pod=\"$pod_name\"}[2m]))",
"hide": false,
"legendFormat": "Users cache hit ratio",
"range": true,
Expand All @@ -181,6 +183,21 @@
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 6,
Expand Down Expand Up @@ -213,7 +230,8 @@
"le": 1e-9
},
"legend": {
"show": true
"show": true,
"showLegend": true
},
"rowsFrame": {
"layout": "auto"
Expand All @@ -224,6 +242,7 @@
},
"yAxis": {
"axisPlacement": "left",
"decimals": 3,
"reverse": false
}
},
Expand All @@ -237,7 +256,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by (le) (idelta(http_server_duration_seconds_bucket{http_route=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"} [2m]))",
"expr": "sum by (le) (idelta(http_server_requests_seconds_bucket{uri=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"} [2m]))",
"format": "heatmap",
"interval": "",
"legendFormat": "{{le}}",
Expand Down Expand Up @@ -272,6 +291,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -329,7 +350,7 @@
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -343,8 +364,8 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(rate(http_server_duration_seconds_bucket{http_route=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) by (le))",
"legendFormat": "__auto",
"expr": "histogram_quantile(0.99, sum(rate(http_server_requests_seconds_bucket{uri=\"/realms/{realm}/protocol/{protocol}/token\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) by (le,uri))",
"legendFormat": "{{uri}}",
"range": true,
"refId": "A"
}
Expand All @@ -355,16 +376,16 @@
],
"refresh": false,
"revision": 1,
"schemaVersion": 36,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "keycloak",
"value": "keycloak"
"text": "runner-keycloak",
"value": "runner-keycloak"
},
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -396,14 +417,18 @@
"$__all"
]
},
"definition": "http_server_duration_seconds_count{namespace=\"$namespace\"}",
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"definition": "http_server_requests_seconds_bucket{namespace=\"$namespace\"}",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "pod_name",
"options": [],
"query": {
"query": "http_server_duration_seconds_count{namespace=\"$namespace\"}",
"query": "http_server_requests_seconds_bucket{namespace=\"$namespace\"}",
"refId": "StandardVariableQuery"
},
"refresh": 2,
Expand Down

This file was deleted.

0 comments on commit a5b20a1

Please sign in to comment.