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

[FEATURE] Have metrics on bunkerweb #578

Open
lenglet-k opened this issue Jul 27, 2023 · 0 comments
Open

[FEATURE] Have metrics on bunkerweb #578

lenglet-k opened this issue Jul 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lenglet-k
Copy link

lenglet-k commented Jul 27, 2023

What's needed and why ?
To monitor bunkerweb it would be interesting to have metrics in opentelemetry format in order to be able to retrieve them by tools like prometheus. This will also allow you to create dashboards and supervision alerts.

It should be understood that the metrics will have to expose information on the internal functioning of bunkerweb, for example, a metric allowing to know the number of requests blocked by service, sourceIp and by plugin:

bunkerweb_waf_blocked_request{service="myservice", plugin="badbehavior", sourceIp="1.1.1.1"} 10 # blocked request by service, plugin, sourceIp
bunkerweb_waf_http_request{service="myservice"} 10 # number of request

beware of the use of labels which can lead to high cardinality and therefore overconsumption of prometheus memory

Implementations ideas (optional)
have an exporter that exposes the metrics scrappable by prometheus. With that we can create a dashboard and alerts rules.

@lenglet-k lenglet-k added the enhancement New feature or request label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant