Skip to content

Kubernetes deployment to expose helm version updates based on nova as prometheus metrics

License

Notifications You must be signed in to change notification settings

orchit/helm-upcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm-Upcheck - A Helm Update Checker For Charts

docker-image

Current version: v1.1.0

Helm-Upcheck uses nova to check the helm releases for updates. The updates are provided as text file and as prometheus metrics.

You can view them using the service "helm-upcheck" which provides http access to them. The following URLs are available:

  • http://SERVICE/versions - Displays the text output from nova that was used to create the metrics
  • http://SERVICE/metrics - Serves the prometheus metrics which include the update informations for the helm charts
  • http://SERVICE/refresh - Http endpoint to initiate a helm version check, this is called from a kubernetes cron job, by default every hour
  • http://SERVICE/lastlog - Access the log from the nova run (may be empty with a loglevel <3, log level 5 is pretty verbose and offers ways to see which sources are checked)

To access the service on localhost:3080 you can use kube-proxy for example:

kubectl port-forward service/helm-upcheck -n helmupcheck 3080:80

upcheck_helm_item contains information about individual releases. The value is 0 = ok, 1 = old, 2 = deprecated, 3 = old deprecated

upcheck_helm_items_total, upcheck_helm_items_ok_total, upcheck_helm_items_old_total, upcheck_helm_items_deprecated_total show the summarized values for convinience

Deployment

For deployment modify and apply the deployment.yaml and if you use the prometheus operator, you can also apply the servicemonitor.yaml, which also includes two rules for alerts.

If time permits we will also release a helm chart for it.

Changelog

1.0.2

  • Add variable NOVA_PARAMETERS to append commandline parameters for nova
  • Add variable LOG_LEVEL whoch is passed to nova, default is 1, other sensible values are 3,5,6,7,8,9,10 (10 is writing insane amounts)
  • Add new endpoint /lastlog which contains the logs of the last run

About

Kubernetes deployment to expose helm version updates based on nova as prometheus metrics

Resources

License

Stars

Watchers

Forks

Packages

No packages published