Skip to content

What do policy result metrics mean? #539

Answered by kdkasad
Libertie asked this question in Q&A
Discussion options

You must be logged in to vote

For instance, does "bot/generic-browser" represent unique agents, or does it include subsequent, unchallenged page visits by humans who pass initial validation?

The latter.

Here is where the counter is defined:

Applications = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "anubis_policy_results",
Help: "The results of each policy rule",
}, []string{"rule", "action"})

And here, inside of maybeReverseProxy(), it gets incremented, before checking if the request passes the selected policy.

policy.Applications.WithLabelValues(cr.Name, string(cr.Rule)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Libertie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants