dirsigler / uptime-kuma-helm

This Helm Chart installs Uptime-Kuma from @louislam to your Kubernetes Cluster.
https://helm.irsigler.cloud
GNU General Public License v3.0
147 stars 51 forks source link

Feat/add servicemonitor #116

Closed nobbs closed 11 months ago

nobbs commented 11 months ago

Description of the change

Adds a ServiceMonitor resource if the enabled and the cluster supports it. This will instruct a deployed Prometheus instance in the cluster to scrape Uptime Kuma metrics.

Benefits

Uptime Kuma metrics automatically show up in Prometheus.

Possible drawbacks

None known.

Applicable issues

Additional information

The ServiceMonitor template will check if the cluster does have the monitoring.coreos.com/v1 API capability and only create the object if that check succeeds. This will prevent deployment failure with serviceMonitor.enabled: true in clusters missing the Prometheus monitoring stack.

Checklist

dirsigler commented 11 months ago

Crazy good addition. Thanks a lot @nobbs !