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

[inputs.ipset] add metrics for number of entries in ipsets and number of individual IPs (resolve CIDR) #16103

Open
verybadsoldier opened this issue Oct 29, 2024 · 0 comments · May be fixed by #16124
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@verybadsoldier
Copy link

Use Case

Some automatic IP blacklisting systems (e.g. FireHOL) are automatically updating ipset contents to contain known malicious IP addresses to be blocked by firewalls. Those ipsets get updated regularly automatically to contain the latest IP blacklist data.

So, it would be nice if we could track the amount of entries of such dynamic ipsets and also see how many individual IP addresses are targeted (e.g. 10.12.5.0/8) would target 254 addresses while being just a single ipset entry.

Expected behavior

The ipset input plugin should export metrics to contain the mentioned data.

Actual behavior

This data is not exported.

Additional info

I will try to provide a PR that implements that feature soon.

@verybadsoldier verybadsoldier added the feature request Requests for new plugin and for new features to existing plugins label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant