crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
9.17k stars 472 forks source link

[cscli metrics] Local API bouncers decisions #3266

Open LaurenceJJones opened 2 months ago

LaurenceJJones commented 2 months ago

most cscli metrics values are shown as k to show 100 thousand as 100k, however, the metrics defined in title does not exhibit the same behavior example:

Local API Bouncers Decisions:
╭──────────────────┬───────────────┬───────────────────╮
│ Bouncer          │ Empty answers │ Non-empty answers │
├──────────────────┼───────────────┼───────────────────┤
│ nginx-1667135523 │ 101139        │ 486               │
╰──────────────────┴───────────────┴───────────────────╯

newer metrics for example appsec are shown as it

Appsec Metrics:
╭──────────────────┬───────────┬─────────╮
│ Appsec Engine    │ Processed │ Blocked │
├──────────────────┼───────────┼─────────┤
│ /run/appsec.sock │ 114.59k   │ 15      │
╰──────────────────┴───────────┴─────────╯
github-actions[bot] commented 2 months ago

@LaurenceJJones: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) 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](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 2 months ago

@LaurenceJJones: There are no 'kind' label on this issue. You need a 'kind' label to start the triage process.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) 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](https://github.com/BirthdayResearch/oss-governance-bot) repository.
LaurenceJJones commented 1 month ago

Same for whitelists

Whitelist Metrics:
+--------------------------+-----------------------------+---------+-------------+
| Whitelist                | Reason                      | Hits    | Whitelisted |
+--------------------------+-----------------------------+---------+-------------+
| crowdsecurity/whitelists | private ipv4/ipv6 ip/ranges | 5322048 | 5293235     |
+--------------------------+-----------------------------+---------+-------------+