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
Dnsdist prometheus stats #6343
Dnsdist prometheus stats #6343
Conversation
Note that Travis failures are unrelated to this PR. |
Code looks good at first glance, perhaps @wojas could chime in (no rush) to look at the Prometheus part? |
had a quick look -> ❤️ |
@@ -128,7 +128,7 @@ static bool isAnAPIRequestAllowedWithWebAuth(const YaHTTP::Request& req) | |||
|
|||
static bool isAStatsRequest(const YaHTTP::Request& req) | |||
{ | |||
return req.url.path == "/jsonstat"; | |||
return req.url.path == "/jsonstat" || req.url.path == "/prometheus"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really looking forward for this to be merged!!! 👍 🙌
This is not really a big deal, but Prometheus default to /metrics
for metrics path, would be nice to stick to the standard /metrics
unless there's a reason no to.
# The HTTP resource path on which to fetch metrics from targets.
[ metrics_path: <path> | default = /metrics ]
https://prometheus.io/docs/prometheus/latest/configuration/configuration/
Hello! Are you going to finish this work? That's very useful change and it can improve dnsdist deployment experience a lot. I can help with testing. |
Superseded by #6901 which includes this work, thanks! |
Short description
Rebase of the original PR#3935, which is disconnected, hence a new PR.
See discussion #4947, and more recently #6002 and #6088.
I think I'm terrible at C++, but here we go.
Checklist
I have: