Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

FORK Kubernetes event reporter for Sentry

License

Notifications You must be signed in to change notification settings

elseu/sentry-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EDIT: Build with:

docker buildx build  --platform linux/arm64,linux/amd64 --push -t 117533191630.dkr.ecr.eu-west-1.amazonaws.com/sdu/sentry-kubernetes:20220615-1.0.1 .

sentry-kubernetes

Disclaimer: this project is not officially maintained by Sentry.

The code is under the getsentry GitHub organization because it was created by a former employee.
For more information see issue #42.


Errors and warnings in Kubernetes often go unnoticed by operators. Even when they are checked they are hard to read and understand in the context of what else is going on in the cluster. sentry-kubernetes is a small container you launch inside your Kubernetes cluster that will send errors and warnings to Sentry where they will be cleanly presented and intelligently grouped. Typical Sentry features such as notifications can then be used to help operation and developer visibility.

Create a new project on Sentry and use your DSN when launching the sentry-kubernetes container:

kubectl run sentry-kubernetes \
  --image getsentry/sentry-kubernetes \
  --env="DSN=$YOUR_DSN"

Filters and options

See the full list in sentry-kubernetes.py

ENV var Description
EVENT_NAMESPACES_EXCLUDED A comma-separated list of namespaces. Ex.: 'qa,demo'. Events from these namespaces won't be sent to Sentry.

Events are grouped in Sentry:

1


They come with useful tags for filtering, and breadcrumbs showing events that occurred prior to the warning/error:

2


And include all of the extra data attached to the event:

3

Install using helm charts

$ helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
"incubator" has been added to your repositories

$ helm install incubator/sentry-kubernetes --name my-release --set sentry.dsn=<your-dsn>

About

FORK Kubernetes event reporter for Sentry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.2%
  • Dockerfile 8.8%