diff --git a/charts/stable/ntfy/Chart.yaml b/charts/stable/ntfy/Chart.yaml index 6dfc200418e..c64474e41b9 100644 --- a/charts/stable/ntfy/Chart.yaml +++ b/charts/stable/ntfy/Chart.yaml @@ -18,7 +18,7 @@ name: ntfy sources: - https://github.com/truecharts/charts/tree/master/charts/stable/ntfy - https://github.com/binwiederhier/ntfy/ -version: 6.0.0 +version: 6.0.1 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/ntfy/questions.yaml b/charts/stable/ntfy/questions.yaml index 59711cff91a..0604a871722 100644 --- a/charts/stable/ntfy/questions.yaml +++ b/charts/stable/ntfy/questions.yaml @@ -321,6 +321,8 @@ questions: default: 568 # Include{resources} +# Include{metrics} +# Include{prometheusRule} # Include{advanced} # Include{addons} # Include{codeserver} diff --git a/charts/stable/ntfy/values.yaml b/charts/stable/ntfy/values.yaml index 4ae9a7c4f10..8ead147fbfe 100644 --- a/charts/stable/ntfy/values.yaml +++ b/charts/stable/ntfy/values.yaml @@ -50,6 +50,7 @@ workload: ENABLE_CACHE_FILE: false ENABLE_ATTACHMENT_CACHE_DIR: false ENABLE_AUTH_FILE: false + NTFY_ENABLE_METRICS: "{{ .Values.metrics.main.enabled }}" # NTFY_CACHE_DURATION: "12h" # NTFY_KEEPALIVE_INTERVAL: "45s" # NTFY_MANAGER_INTERVAL: "1m" @@ -76,3 +77,31 @@ workload: envFrom: - configMapRef: name: "ntfy" + +metrics: + main: + # -- Enable and configure a Prometheus serviceMonitor for the chart under this key. + # @default -- See values.yaml + enabled: false + type: "servicemonitor" + endpoints: + - port: main + path: /metrics + # -- Enable and configure Prometheus Rules for the chart under this key. + # @default -- See values.yaml + prometheusRule: + enabled: false + labels: {} + # -- Configure additionial rules for the chart under this key. + # @default -- See prometheusrules.yaml + rules: + [] + # - alert: UnifiPollerAbsent + # annotations: + # description: Unifi Poller has disappeared from Prometheus service discovery. + # summary: Unifi Poller is down. + # expr: | + # absent(up{job=~".*unifi-poller.*"} == 1) + # for: 5m + # labels: + # severity: critical