https://github.com/amirhnajafiz/resource-exporter
Pods watcher controller for monitoring Kubernetes pods resources.
https://github.com/amirhnajafiz/resource-exporter
go golang kubernetes kubernetes-cluster kubernetes-controller pods pods-watcher resources
Last synced: about 1 month ago
JSON representation
Pods watcher controller for monitoring Kubernetes pods resources.
- Host: GitHub
- URL: https://github.com/amirhnajafiz/resource-exporter
- Owner: amirhnajafiz
- Created: 2021-09-01T15:36:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T12:28:24.000Z (over 1 year ago)
- Last Synced: 2025-01-23T17:34:41.586Z (3 months ago)
- Topics: go, golang, kubernetes, kubernetes-cluster, kubernetes-controller, pods, pods-watcher, resources
- Language: Go
- Homepage:
- Size: 5.87 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pods Watcher


A kubernetes controller for monitoring kubernetes cluster resources and send notifications/alerts
on events. This system gets a set of rules as an input, after that it surveillance your cluster
and it sends notifications via email if any violations occurred.## :eye_speech_bubble: schema
Here is the state machine of our system.
```txt
Kubernetes cluster -> Pods -> Resources -> Check rules -> Rules violation -> Send email
```## :luggage: configs
Create a ```config.yml``` file based on ```config.example.yml``` template.
```yaml
mailgun:
sender: "pods-watcher.monitoring.snapp.ir"
receiver: "main.sre.team.snapp.ir"
subject: "pods-watcher-violation-email"
domain: ""
key: ""
rules:
- name: "nginx apps"
cpu: 10
ram: 10
labels:
app: nginx```
## :man_pilot: deploy
In order to make a deployment of this controller run ```make``` command.