docker-mailserver / docker-mailserver-helm

Kubernetes Helm chart for docker-mailserver
https://github.com/docker-mailserver/docker-mailserver/
MIT License
107 stars 67 forks source link

add postfix metrics exporter #80

Closed konvergence closed 1 year ago

konvergence commented 1 year ago

New values metrics allow to export postfix metrics for prometheus You can also generate a serviceMonitor if you use prometheus operator

# when metrics is enabled, we mount subpath log from pvc into /var/log/mail
metrics:
  enabled: true
  image:
    name: blackflysolutions/postfix-exporter@sha256
    tag: 7ed7c0534112aff5b44757ae84a206bf659171631edfc325c3c1638d78e74f73
    pullPolicy: "IfNotPresent"

  resources:
    requests:
      memory: "256Mi"
    #  cpu: "100M"
    #limits:
    #  memory: "256Mi"
    #  cpu: "500M"

  serviceMonitor:
    enabled: true
    scrapeInterval: 15s