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
dirsigler/uptime-kuma-helm/issues/58
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
[x] Chart version bumped in Chart.yaml according to semver.
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 themonitoring.coreos.com/v1
API capability and only create the object if that check succeeds. This will prevent deployment failure withserviceMonitor.enabled: true
in clusters missing the Prometheus monitoring stack.Checklist
Chart.yaml
according to semver.