Skip to content

Commit

Permalink
Fix uri patterns taking quarkusio/quarkus#44437 into account
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Hajas <[email protected]>
  • Loading branch information
mhajas committed Nov 12, 2024
1 parent 67d8500 commit 84b6029
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ Setting `http-metrics-histograms-enabled` to `true` would capture additional buc

----
sum(
rate(
irate(
http_server_requests_seconds_bucket{
uri=~"/realms/{realm}/protocol/{protocol}/.*|/realms/{realm}/login-actions/.*", # <1>
uri=~"/realms/{realm}/protocol/{protocol}.*|/realms/{realm}/login-actions.*", # <1>
le="0.25", # <2>
container="keycloak", # <3>
namespace="$namespace"}
Expand All @@ -116,9 +116,9 @@ sum(
) without (le,uri,status,outcome,method,pod,instance) # <5>
/
sum(
rate(
irate(
http_server_requests_seconds_count{
uri=~"/realms/{realm}/protocol/{protocol}/.*|/realms/{realm}/login-actions/.*", # <1>
uri=~"/realms/{realm}/protocol/{protocol}.*|/realms/{realm}/login-actions.*", # <1>
container="keycloak",
namespace="$namespace"}
[5m] # <3>
Expand All @@ -140,9 +140,9 @@ targeting a particular namespace, over the past 5 minutes.
[source,plaintext]
----
sum(
rate(
irate(
http_server_requests_seconds_count{
uri=~"/realms/{realm}/protocol/{protocol}/.*|/realms/{realm}/login-actions/.*", # <1>
uri=~"/realms/{realm}/protocol/{protocol}.*|/realms/{realm}/login-actions.*", # <1>
outcome="SERVER_ERROR", # <2>
container="keycloak", # <3>
namespace="$namespace"}
Expand All @@ -151,9 +151,9 @@ sum(
) without (le,uri,status,outcome,method,pod,instance) # <5>
/
sum(
rate(
irate(
http_server_requests_seconds_count{
uri=~"/realms/{realm}/protocol/{protocol}/.*|/realms/{realm}/login-actions/.*", # <1>
uri=~"/realms/{realm}/protocol/{protocol}.*|/realms/{realm}/login-actions.*", # <1>
container="keycloak", # <3>
namespace="$namespace"}
[5m] # <4>
Expand Down

0 comments on commit 84b6029

Please sign in to comment.