Configuring MATRIXX Pod Annotations for Prometheus

Add annotations to MATRIXX pods using the using the global.annotations.podAnnotations configuration property.

The following example adds annotations for these components:

  • event-streamer
  • gateway-proxy
  • matrixxbct
  • mymatrixx
  • notifier
  • payment-service
  • rsgateway
  • sba-5gc-chf
  • engine
  • tra
global:
  monitoring:
    enabled: true
  annotations:
    podAnnotations:
      - matching: ["event-streamer"]
        values:
          prometheus.io/path: /actuator/prometheus
          prometheus.io/port: "5765"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["gateway-proxy"]
        values:
          prometheus.io/path: /metrics
          prometheus.io/port: "5750"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["matrixxbct"]
        values:
          prometheus.io/path: /matrixxbct/actuator/prometheus
          prometheus.io/port: "8081"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["mymatrixx"]
        values:
          prometheus.io/path: /matrixx/actuator/prometheus
          prometheus.io/port: "8082"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["notifier"]
        values:
          prometheus.io/path: /metrics
          prometheus.io/port: "5745"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["payment-service"]
        values:
          prometheus.io/path: /actuator/prometheus
          prometheus.io/port: "9095"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["rsgateway"]
        values:
          prometheus.io/path: /rsgateway/actuator/prometheus
          prometheus.io/port: "8080"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["sba-5gc-chf"]
        values:
          prometheus.io/path: /metrics
          prometheus.io/port: "9098"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["engine"]
        values:
          prometheus.io/path: /metrics
          prometheus.io/port: "18050"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"
      - matching: ["tra"]
        values:
          prometheus.io/path: /metrics
          prometheus.io/port: "18050"
          prometheus.io/scheme: http
          prometheus.io/scrape: "true"

For more information, see the discussions about Helm configuration properties for annotations and monitoring in MATRIXX Configuration.