You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a machine gets removed, the respective metric of this machine continues to be exposed in the metrics endpoint of crowdsec. This then results in an alert regarding a machine which is not present anymore and also does not show up in the output of cscli machine list.
What did you expect to happen?
I expected that when I remove a machine using cscli machine delete the metrics endpoint does not expose any metrics for the removed machine anymore.
How can we reproduce it (as minimally and precisely as possible)?
Enable the prometheus metrics endpoint
Add a machine and wait for the first heartbeat
Check the metrics (e.g. by curl $(hostname -f):6060/metrics|grep cs_lapi_machine_requests_total) and make sure there is a metric for the newly added machine.
Delete the machine using cscli machine delete
Check the metrics again
Anything else we need to know?
The issue also seems to affect bouncer metrics (such as cs_lapi_bouncer_requests_total).
Check Releases to make sure your agent is on the latest version.
Details
I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.
What happened?
We use the following promql expression to monitor the heartbeat of our crowdsec machines:
If a machine gets removed, the respective metric of this machine continues to be exposed in the metrics endpoint of crowdsec. This then results in an alert regarding a machine which is not present anymore and also does not show up in the output of
cscli machine list
.What did you expect to happen?
I expected that when I remove a machine using
cscli machine delete
the metrics endpoint does not expose any metrics for the removed machine anymore.How can we reproduce it (as minimally and precisely as possible)?
curl $(hostname -f):6060/metrics|grep cs_lapi_machine_requests_total
) and make sure there is a metric for the newly added machine.cscli machine delete
Anything else we need to know?
The issue also seems to affect bouncer metrics (such as
cs_lapi_bouncer_requests_total
).Crowdsec version
OS version
Enabled collections and parsers
Acquisition config
On Windows:
C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml
paste output here
Config show
Prometheus metrics
Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.
The text was updated successfully, but these errors were encountered: