Skip to content

Collect host and dnsdist metrics with prometheus and node-exporter - #84

Merged
znerol merged 9 commits into
mainfrom
feat-local-metrics
Oct 13, 2026
Merged

znerol merged 9 commits into
mainfrom
feat-local-metrics

Conversation

@znerol

@znerol znerol commented Oct 5, 2026

Copy link
Copy Markdown
Member
  • Add a new generic metrics module. Should be reusable for other deployments as well.
  • Permit other modules to drop a scrape_config into /etc/prometheus/scrape-configs.d where it is picked up automatically by prometheus (if installed).
  • Implement dnsdist metrics as a proof-of-concept for the scrape-configs.d approach.

@znerol

znerol commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

We have per-ip accounting in munin. I did some research in order to check whether something similar could be done with prometheus. I went through imported by list of github.com/google/nftables and found something which looks promising: https://codeberg.org/klausman/nfprom

Doesn't need to be part of this PR, just wanted to note down the URL somewhere.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this the config for the dns probes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, one version of it. It shouldn't be in this PR though.

@maederm

maederm commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

LGTM

If you want I can do some manual testing too.

There seems to be a problem with ansible-lint picking up the top-level
directory as the project dir by default. Fix it by exilicitly specifying
the project dir.
@znerol

znerol commented Oct 13, 2026

Copy link
Copy Markdown
Member Author

I reinstalled my tf-local and ran the playbook against it. The scraping works and dnsdist is generating an interesting set of metrics. E.g. dnsdist_frontend_tlshandshakefailures with labels like error="noSharedCipher".

prom-targets

@znerol
znerol merged commit a1d7eb4 into main Oct 13, 2026
3 checks passed
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