Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update add bind view cachestats #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

Signed-off-by: maxiaoyu <maxiaoyu@kuaishou.com>
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