Skip to content

Conversation

LamberMa
Copy link

When I use BIND DNS as a recursive DNS, I consider cache hits and miss to be important monitoring metrics, so I added information related to cachestats.

Comment on lines +80 to +83
resolverCacheStats = prometheus.NewDesc(
prometheus.BuildFQName(namespace, resolver, "cache_stats"),
"Number of Cache Stats in Cache database.",
[]string{"view", "stat"}, nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what "Cache Stats" are. Prometheus convention is that the metric name and help should be understandable by the end user without having to know what the underlying code implementation is.

Do you have a link to any upstream documentation about these values?

We typically don't just generically expose random values with "stat" labels. This provides for a poor user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants