Skip to content
Snippets Groups Projects
Select Git revision
  • 267f58f7db614afe7f3f011caea8444cb4e4b30e
  • main default protected
  • renovate/immich
  • renovate/quay.io-keycloak-keycloak-26.x
  • renovate/redis-21.x
  • renovate/loki-6.x
  • renovate/ghcr.io-mastodon-mastodon-4.x
  • renovate/cloudflare-5.x
  • renovate/mikefarah-yq-4.x
  • renovate/prometheus-json-exporter-0.x
  • renovate/prometheus-smartctl-exporter-0.x
  • renovate/hcloud-exporter-4.x
  • renovate/gitlab-runner-0.x
  • renovate/gcr.io-projectsigstore-cosign-2.x
  • renovate/docker.io-bitnami-kubectl-1.x
  • renovate/docker.io-earthly-earthly-0.x
  • renovate/siderolabs-kubelet-1.33.x
  • renovate/mariadb-21.x
  • renovate/kubernetes-go
  • renovate/external-dns-1.x
  • renovate/longhorn-1.8.x
  • v25.07
  • v25.06
  • v25.05
  • v25.04
  • v25.03
  • v25.02
  • v25.01
  • v24.12
  • v24.11
  • v24.10
  • v24.09
  • v24.08
  • v24.07
  • v24.06
  • v24.05
  • v24.04
  • v24.03
  • v24.02
  • v24.01
  • v23.12
41 results

podmonitor.yaml

Blame
  • Sheogorath's avatar
    Sheogorath authored
    If no namespace selector is sepcified, it will only search in the
    current namespace. This is not intended for this podMonitor, therefore a
    config to explicitly search all namespaces is required.
    
    References:
    https://github.com/prometheus-operator/prometheus-operator/blob/615162d6d35314f94cb9c69f51bc47d62b81f154/Documentation/api.md#namespaceselector
    7b6c4ee4
    History
    podmonitor.yaml 434 B
    ---
    apiVersion: monitoring.coreos.com/v1
    kind: PodMonitor
    metadata:
      name: postgresql
      namespace: postgres-system
    spec:
      selector:
        matchLabels:
          application: spilo
      namespaceSelector:
        any: true
      podMetricsEndpoints:
        - port: exporter
          interval: 15s
          scrapeTimeout: 10s
        - targetPort: 8008
          interval: 15s
          scrapeTimeout: 10s
      podTargetLabels:
        - spilo-role
        - cluster-name
        - team