Skip to content

Commit

Permalink
Update dashboard for standard metrics without OTEL
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Apr 10, 2024
1 parent 7699f72 commit 4992a27
Showing 1 changed file with 41 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -132,11 +134,11 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(http_server_duration_seconds_bucket{http_route=~\"(/realms/{realm}/protocol/{protocol}/token|/realms/{realm}/protocol/{protocol}/auth|/realms/{realm}/protocol/{protocol}/logout|realms/{realm}/login-actions/authenticate)\", le=\"0.25\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) without (le) / rate(http_server_duration_count{http_route=~\"(/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])",
"expr": "sum(rate(http_server_requests_seconds_bucket{uri=~\"/realms/{realm}/protocol/{protocol}/(token|auth)|REDIRECTION|/realms/{realm}/login-actions/authenticate\", le=\"0.25\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m])) without (le) / rate(http_server_requests_seconds_count{uri=~\"/realms/{realm}/protocol/{protocol}/(token|auth)|REDIRECTION|/realms/{realm}/login-actions/authenticate\", namespace=\"$namespace\", pod=\"$pod_name\"}[2m]) ",
"format": "time_series",
"hide": false,
"instant": false,
"legendFormat": "Percentage below 250ms {{http_route}}",
"legendFormat": "Percentage below 250ms {{uri}} {{status}}",
"range": true,
"refId": "A"
},
Expand All @@ -146,7 +148,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 @@ -158,7 +160,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 @@ -182,6 +184,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 @@ -214,7 +231,8 @@
"le": 1e-9
},
"legend": {
"show": true
"show": true,
"showLegend": true
},
"rowsFrame": {
"layout": "auto"
Expand All @@ -225,6 +243,7 @@
},
"yAxis": {
"axisPlacement": "left",
"decimals": 3,
"reverse": false
}
},
Expand All @@ -238,7 +257,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by (le) (idelta(http_server_duration_seconds_bucket{http_route=~\"(/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]))",
"expr": "sum by (le) (idelta(http_server_requests_seconds_bucket{uri=~\"/realms/{realm}/protocol/{protocol}/(token|auth)|REDIRECTION|/realms/{realm}/login-actions/authenticate\", namespace=\"$namespace\", pod=\"$pod_name\"} [2m]))",
"format": "heatmap",
"interval": "",
"legendFormat": "{{le}}",
Expand Down Expand Up @@ -273,6 +292,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -344,7 +365,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(rate(http_server_duration_seconds_bucket{http_route=~\"(/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,http_route))",
"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",
"range": true,
"refId": "A"
Expand All @@ -354,18 +375,18 @@
"type": "timeseries"
}
],
"refresh": false,
"refresh": "",
"revision": 1,
"schemaVersion": 36,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "keycloak",
"value": "keycloak"
"selected": false,
"text": "runner-keycloak",
"value": "runner-keycloak"
},
"datasource": {
"type": "prometheus",
Expand Down Expand Up @@ -397,14 +418,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 All @@ -421,8 +446,8 @@
},
"timepicker": {},
"timezone": "",
"title": "Authentication Code SLO",
"uid": "R3kK_894z",
"title": "Authentication Code SLO Copy",
"uid": "yu4o7VaSz",
"version": 2,
"weekStart": ""
}

0 comments on commit 4992a27

Please sign in to comment.