Skip to content

Getting nginx_ingress_controller_requests metric #4415

Closed Answered by JanCizmar
JanCizmar asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. I actually just used Loki to store the logs from nginx ingress controller and then used this query to get the rate of 502 responses.

sum(rate({container="nginx-ingress"} |~ "\"\\s502\\s"[$__interval]))

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@JanCizmar
Comment options

Comment options

You must be logged in to vote
3 replies
@JanCizmar
Comment options

Answer selected by JanCizmar
@brianehlert
Comment options

@JanCizmar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants