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

metrics endpoint not found #59

Open
Simbiat opened this issue Nov 29, 2024 · 3 comments
Open

metrics endpoint not found #59

Simbiat opened this issue Nov 29, 2024 · 3 comments

Comments

@Simbiat
Copy link

Simbiat commented Nov 29, 2024

I am getting a lot of warnings in logs like

{"level":"warn","ts":1732886807.0902967,"logger":"crowdsec","msg":"metrics endpoint not found, older LAPI?","instance_id":"1d64c975","address":"http://crowdsec:8080/"}

I am launching FrankenPHP and Crowdsec in Docker with this config. Crowdsec config is here, Caddy config is here (note it's JSON5, not JSON). The endpoint is accessible from FrankenPHP container, though, so unclear why this error is being spammed. Since it's spammed into Caddy's log, my assumption is that something is wrong in how it communicates with Crowdsec, but I am open to any ideas, what else may be wrong.

@hslatman
Copy link
Owner

v0.7.0 introduced support for sending metrics to CrowdSec: #49. It probably logs the errors because you're using an older version of the LAPI.

I've opened #49 and will create a new patch release to disable the run loop (for now). I want to make the metrics interval configurable in a (quick) follow up, so that it can be disabled if needed.

@hslatman
Copy link
Owner

@Simbiat
Copy link
Author

Simbiat commented Nov 29, 2024

well, that's the thing, I am using latest container from Crowdsec (image: crowdsecurity/crowdsec:latest), so how can it be old? For reference my bouncers:
image

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

No branches or pull requests

2 participants