Skip to content

a tool to monitor pv sizes in GKE and push metrics to GCP monitor

Notifications You must be signed in to change notification settings

rwsdigital/gke-pvc-calculator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

GKE pvc Calculator

This tool was created to export PVC statistics to GCP monitor as metrics, in order to create alerts and monitor disk usage.

The tool is a go program that mount the host mount points of the pvs and check there size. it is deployed as a daemonset in all the kubernetes nodes.


to build :

$ docker build -t image:tag .

notes:

  • please update the image on the deployment with the proper name and tag
  • please add GCP_PROJECT with the name of you project to watch

to deploy, go to the deploy directory and apply the yaml files

$ kubectl apply -f rbac.yaml
$ kubectl apply -f gke-daemonset.yaml

todo :

  • remove hack from code
  • create helm deployment

Thanks to Harris Dimitriou.

About

a tool to monitor pv sizes in GKE and push metrics to GCP monitor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.2%
  • Dockerfile 4.8%