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

dnsdist: Add 'statistics' to the general API endpoint #11659

Merged

Conversation

rgacogne
Copy link
Member

Short description

Making it possible to retrieve all metrics by querying one endpoint (/api/v1/servers/localhost) instead of two (/api/v1/servers/localhost and /api/v1/servers/localhost/statistics).

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@rgacogne rgacogne added this to the dnsdist-1.8.0 milestone May 31, 2022
@rgacogne rgacogne force-pushed the ddist-add-stats-to-general-api-endpoint branch from 4663ae5 to 44b750c Compare June 1, 2022 09:08
@rgacogne rgacogne requested a review from chbruyand June 1, 2022 09:08
Copy link
Member

@chbruyand chbruyand left a comment

Choose a reason for hiding this comment

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

LGTM!

Making it possible to retrieve all metrics by querying one endpoint
(/api/v1/servers/localhost) instead of two (/api/v1/servers/localhost
and /api/v1/servers/localhost/statistics).
@rgacogne rgacogne force-pushed the ddist-add-stats-to-general-api-endpoint branch from 44b750c to 1432515 Compare June 7, 2022 10:21
@rgacogne
Copy link
Member Author

rgacogne commented Jun 7, 2022

I had to rebase the PR to fix a conflict.

@rgacogne
Copy link
Member Author

rgacogne commented Jun 7, 2022

The CI failure is unrelated:

error resolving for ALIAS google-public-dns-a.google.com., aborting AXFR

@rgacogne rgacogne merged commit 2f20e30 into PowerDNS:master Jun 7, 2022
@rgacogne rgacogne deleted the ddist-add-stats-to-general-api-endpoint branch June 7, 2022 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants