sentry-kubernetes
is an open-source tool designed to monitor a Kubernetes cluster and send notifications to Sentry (SaaS or self-hosted) when errors are detected. This tool helps track critical events, improving incident management and operational visibility.
- Real-time monitoring of Kubernetes events.
- Integration with Sentry for error notifications.
- Support for both SaaS and self-hosted Sentry environments.
- Simple and flexible configuration.
- Kubernetes cluster (version >= 1.26)
- A configured project on Sentry (SaaS or self-hosted).
You can install sentry-kubernetes
using Helm:
helm install sentry-kubernetes oci://ghcr.io/alekitto/sentry-kubernetes-chart/sentry-kubernetes
Ensure you configure the OCI repository before installation.
sentry-kubernetes
is configured using a YAML file. Below is an example configuration structure:
dsn: <string> # Global Sentry DSN
levels: # Severity levels to monitor
- trace
- debug
- info
- warning
- error
log_level: <string> # Application log level (e.g., "info")
environment: <string> # Environment name (e.g., "production")
release: <string> # Application release/version
historical: <bool> # Send historical events (true or false)
monitors: # Monitor configuration
- dsn: <string> # Specific DSN for the monitor (optional, uses global DSN if absent)
environment: <string> # Specific environment (optional, uses global environment if absent)
release: <string> # Specific release (optional, uses global release if absent)
levels: # Specific levels for the monitor
- warning
- error
resources: # List of resources to monitor (monitor all the resources if absent)
- api_version: <string> # API version of the resource (e.g., "v1")
kind: <string> # Resource type (e.g., "Pod", "Deployment")
label_selector: <string> # Label selector (e.g., "app=my-app")
namespace: <string> # Resource namespace
helm install sentry-kubernetes oci://ghcr.io/alekitto/sentry-kubernetes-chart/sentry-kubernetes -f values.yaml
Contributions are welcome! Feel free to open issues or pull requests on GitHub.
- Fork the repository.
- Create a branch for your changes:
git checkout -b feature/my-feature
. - Make your changes.
- Open a pull request.
This project is licensed under the MIT.
If you have questions or feedback, feel free to open an issue or contact me directly on GitHub.