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: Deduplicate frontends entries with carbon and prometheus #7934

merged 2 commits into from Jun 17, 2019


Copy link

@rgacogne rgacogne commented Jun 14, 2019

Short description

This is a work-around, and not a very pretty one, to avoid messing up our carbon/prometheus metrics when we add the same frontends several times with addLocal(), addTLSLocal() or addDOHLocal() and reuseport.
The proper fix would be to be able to provide the number of threads directly as a parameter to the add*Local() and provide aggregated metrics (but also per-thread metrics, at least for the number of queries, so we can check that the distribution done by the kernel is working correctly), but this would require an important refactoring and we are too late in the 1.4.0 release process for that IMHO.

We will need to implement the deduplication for the DoH metrics in prometheus as well, either in this PR if #7933 is merged first, or in #7933 otherwise.

Fixes #7358.


I have:

  • read the 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)

Copy link

@pieterlexis pieterlexis left a comment

Choose a reason for hiding this comment

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

not tested, code looks good, with some nits.

pdns/ Outdated Show resolved Hide resolved
pdns/ Outdated Show resolved Hide resolved
pdns/ Show resolved Hide resolved
@rgacogne rgacogne merged commit 2b4c903 into PowerDNS:master Jun 17, 2019
@rgacogne rgacogne deleted the dnsdist-fix-dup-metrics branch July 12, 2019 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

dnsdist Carbon multiple frontend counters
2 participants