Kubernetes resource monitoring application that retrieves pod metrics and checks resource usage periodically.
APACHE-2.0 License
This project is a Kubernetes resource monitoring application that retrieves pod metrics and checks resource usage periodically. It sends alerts and warnings based on the defined resource limits and requests for each container within the pods.
git clone https://github.com/saidsef/pod-resources.git
cd pod-resources
go mod tidy
Before running the application, you need to set up the following environment variables - all optional:
DURATION_SECONDS
: The duration (in seconds) for which the application will check resource usage. Default is 120s
.SLACK_TOKEN
: The token for your Slack app to send notifications (optional).SLACK_CHANNEL
: The Slack channel where notifications will be sent (optional).To run the application, execute the following command:
go run resources.go
The application will connect to the Kubernetes cluster, retrieve the list of pods, and start monitoring their resource usage based on the specified duration.
Our latest and greatest source of Reverse Geocoding can be found on [GitHub]. Fork us!
We would ❤️ you to contribute by making a pull request.
Please read the official Contribution Guide for more information on how you can contribute.