All Projects → stevelacy → go-sentry-kubernetes

stevelacy / go-sentry-kubernetes

Licence: MIT License
Lightweight sentry error/crash reporter for kubernetes

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
Dockerfile
14818 projects

Labels

Projects that are alternatives of or similar to go-sentry-kubernetes

django-template
The ultimate Django template: production ready Django 3.2 with Docker, HTTPS and CI/CD using Github actions ‎️‍🔥
Stars: ✭ 20 (-39.39%)
Mutual labels:  sentry
crow
Crow - a C++ client for Sentry
Stars: ✭ 119 (+260.61%)
Mutual labels:  sentry
asgi-correlation-id
Request ID propagation for ASGI apps
Stars: ✭ 83 (+151.52%)
Mutual labels:  sentry
Mail
RiiConnect24 Mail Scripts. OSS.
Stars: ✭ 11 (-66.67%)
Mutual labels:  sentry
monolog-sentry-handler
Monolog handler for Sentry PHP SDK v2 with breadcrumbs support
Stars: ✭ 34 (+3.03%)
Mutual labels:  sentry
sentry
Mirror of Apache Sentry
Stars: ✭ 114 (+245.45%)
Mutual labels:  sentry
sentry-android-gradle-plugin
Gradle plugin for Sentry Android. Upload proguard, debug files, and more.
Stars: ✭ 67 (+103.03%)
Mutual labels:  sentry
sentry-docker-compose
How to setup a full Sentry instance with docker-compose.yml
Stars: ✭ 33 (+0%)
Mutual labels:  sentry
sentry-horn
Swift based sentry iOS application
Stars: ✭ 15 (-54.55%)
Mutual labels:  sentry
sentry-testkit
A Sentry plugin to allow Sentry report interception and further inspection of the data being sent
Stars: ✭ 78 (+136.36%)
Mutual labels:  sentry
typescript-nuxtjs-boilerplate
🍱 Nuxt.js with TypeScript and Run with docker and docker-compose 🐶🦄🔥 visit: https://typescript-nuxtjs-boilerplate.netlify.com/example
Stars: ✭ 51 (+54.55%)
Mutual labels:  sentry
NodeJS Mongo BoilerPlate
CRUD Blog using NodeJS,Express, MongoDB
Stars: ✭ 18 (-45.45%)
Mutual labels:  sentry
hapi-sentry
A hapi plugin for request error logging to Sentry
Stars: ✭ 24 (-27.27%)
Mutual labels:  sentry
sentry-fastlane-plugin
Official fastlane plugin for Sentry
Stars: ✭ 100 (+203.03%)
Mutual labels:  sentry
self-hosted
Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
Stars: ✭ 5,034 (+15154.55%)
Mutual labels:  sentry
redux-sentry
Middleware that logs all your store and actions on exception to Sentry with raven-js
Stars: ✭ 13 (-60.61%)
Mutual labels:  sentry
raven-python-lambda
Sentry/Raven SDK Integration For AWS Lambda (python) and Serverless
Stars: ✭ 48 (+45.45%)
Mutual labels:  sentry
sanic-sentry
Sentry integration to sanic web server
Stars: ✭ 31 (-6.06%)
Mutual labels:  sentry
sentry exporter
Prometheus exporter for Sentry
Stars: ✭ 23 (-30.3%)
Mutual labels:  sentry
nextcloud sentry
Sentry integration for Nextcloud
Stars: ✭ 26 (-21.21%)
Mutual labels:  sentry

go-sentry-kubernetes

Sentry.io reporting client for kubernetes

The official sentry-kubernetes is written in python and has a major memory leak and is not officially maintained by Sentry. This reporter is written in golang and uses less than 10MB ram.

Install

Create a new project on Sentry and use your project DSN

Running from cli:

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

Installing as a deployment:

Save as deployment.yaml

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sentry
spec:
  replicas: 1
  selector:
    matchLabels:
      name: sentry
  template:
    metadata:
      labels:
        name: sentry
    spec:
      # required if you make use of rbac
      serviceAccountName: sentry
      containers:
      - name: sentry
        env:
        - name: DSN
          value: "$SENTRY_DSN"
        - name: ENV
          value: "production"
        image: stevelacy/go-sentry-kubernetes:latest
        resources:
          limits:
            memory: "50M"
            cpu: "0.15"
          requests:
            cpu: "0.1"
            memory: "20M"
# required if you make use of rbac
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
  name: sentry
rules:
- apiGroups:
  - ""
  resources:
  - events
  - pods
  verbs:
  - get
  - list
  - watch
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: sentry
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: sentry
subjects:
- kind: ServiceAccount
  name: sentry
  namespace: monitoring
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: sentry
  namespace: monitoring

$ kubectl apply -f ./deployment.yaml

Set the --debug flag to enable debug logs:

      containers:
      - name: go-sentry-kubernetes
        args:
        - --debug
        command:
        - /app/main
        image: stevelacy/go-sentry-kubernetes

screenshot

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].