-
Notifications
You must be signed in to change notification settings - Fork 19
[Question] Configuration and metrics for the middleware #219
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
Comments
Actually, scratch that about traefik working normally. While testing I had commented out the crowdsec middleware from the chain file. readding it causes a 404. |
In my Log i am getting:
|
ANNND Further into the log:
So I changed the version to v1.4.1 and now the error is:
|
Alright, I seemed to have solved this myself. I needed to name
I suppose my only remaining question, is how do I view metrics for this bouncer? |
@fregapple the plugin seems to be currently not reporting any metrics to the LAPI, see #171 |
Due to Max's comment, I assume there is no intended functionality for it. Have you tried what he suggested? Is it worth playing around with that? |
@fregapple this should be easy to implement, I wanted to take a shot at it but found that the CLAPI documentation for the metrics endpoint is scarce and I am not sure on what is the correct way of feeding the metrcis through the metrcis endpoint. |
Hi @fregapple, Responding with some delay. I just wanted to say that you should get more info that what you had from the command inspect. I run the docker compose from the repository (with crowdsec latest) and got this: user@user-pc:~/$ docker exec crowdsec cscli bouncers inspect TRAEFIK
level=warning msg="can't load CAPI credentials from '/etc/crowdsec//online_api_credentials.yaml' (missing login field)"
-------------------------------------------------------
Bouncer: TRAEFIK
-------------------------------------------------------
Created At 2025-03-31 17:57:20.83120561 +0000 UTC
Last Update 2025-03-31 18:03:16.115739732 +0000 UTC
Revoked? false
IP Address 172.18.0.5
Type Go-http-client
Version 1.1
Last Pull 2025-03-31 18:03:16.115736729 +0000 UTC
Auth type api-key
OS ?
Auto Created false
------------------------------------------------------ I do have IP, Type and version filled after the plugin contacted the LAPI. Is everything working ok for you except for the metrics ? |
Should we also rename it here @fregapple
Also, my version is shown as |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug 🐛
Looking within the CrowdSec Console, traefik-bouncer is unknown version and there is no metrics.
Going into crowdsec container and checking the metrics of the bouncer I get this:
I am able to use traefik as normal
Expected behavior 👀
I would hope that I would be able to see metrics and know if this bouncer is doing anything?
Context 🔎
plugin config:
Version (please complete the following information):
The text was updated successfully, but these errors were encountered: