eraser-dev / eraser

🧹 Cleaning up images from Kubernetes nodes
https://eraser-dev.github.io/eraser/
Apache License 2.0
500 stars 62 forks source link

[REQ] Notifications #1089

Open RealFascinated opened 1 month ago

RealFascinated commented 1 month ago

What kind of request is this?

New feature

What is your request or suggestion?

Having some kind of notifications (for example a discord webhook) saying how many images were removed and how much spaced was saved.

Are you willing to submit PRs to contribute to this feature request?

sozercan commented 1 month ago

@RealFascinated eraser provides the following metrics: https://eraser-dev.github.io/eraser/docs/metrics eraser does not know the amount of disk space saved since CRI does not expose that information. You can set up an open telemetry exporter to prometheus and alert manager to send metrics to discord. For example, https://promlabs.com/blog/2022/12/23/sending-prometheus-alerts-to-discord-with-alertmanager-v0-25-0/