Replies: 3 comments
-
The current cache is very basic, I like the idea to counting the number of queries evicted by the query-timeout parameter, I have some proposals:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you add a Feature Request for that ? Metric to count the number queries for which no response was seen within `query-timeout seconds. |
Beta Was this translation helpful? Give feedback.
0 replies
-
resolved in release v0.30.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to wrap my head around how to create an availability metric based on what's already available.
The first thing that came to mind was to do something like that:
The issue with the above is that, because of the delay between query and response, you end up with a percentage higher than 100% (see below).
What I've been thinking of doing instead is changing the way the cache is working by adding a counter for entries evicted by the
query-timeout
and change the Get function to be more of a "pop" (get+delete). What the counter would indicate is the number queries for which no response was seen within `query-timeout seconds.My problem is then passing the counter to the loggers. I could add a new field/struct in DnsMessage and periodically pull the number from the cache but it seems a bit of a hack since that counter wouldn't related to the DnsMessage it would be a part of.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions