Skip to content

Example: PodMonitor

Stéphane Brunner edited this page Jul 3, 2024 · 2 revisions

Note

Non stadard Kubernetes object, requires Prometheus Operator.

Create a Deployment with a PodMonitor.

services:
  deployment1:
    enabled: true
    podMonitor:
      enabled: true
      endpoint:
        port: prometheus
        interval: 10s
        honorLabels: true
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        ports:
          prometheus:
            containerPort: 9110
            protocol: TCP
Clone this wiki locally