image:
  repository: tccr.io/truecharts/unifi-poller
  pullPolicy: IfNotPresent
  tag: v2.7.11@sha256:1189e10773ae7c8843e230ba34840ff119c74bd63e51ad60c53fa8053e3689d8

env:
  # UP_UNIFI_DEFAULT_URL: "https://127.0.0.1:8443"
  # UP_UNIFI_DEFAULT_USER: "unifipoller"
  # UP_UNIFI_DEFAULT_PASS: "unifipoller"
  UP_PROMETHEUS_DISABLE: false

service:
  main:
    ports:
      main:
        enabled: false
      metrics:
        enabled: true
        port: 9130

metrics:
  # -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
  # @default -- See values.yaml
  enabled: false
  serviceMonitor:
    interval: 1m
    scrapeTimeout: 30s
    labels: {}
  # -- 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

portal:
  enabled: false
