Skip to content

Monitoring Flux #405

Answered by pintohutch
heretic098 asked this question in Q&A
Dec 23, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @heretic098,

Apologies for the delayed response. So PodMonitoring as a different API spec from the prometheus-operator PodMonitor, which is why you're facing this issue (e.g. there's no namespaceSelector in PodMonitoring).

However, you should be able to modify your resource to look something like:

apiVersion: monitoring.googleapis.com/v1
kind: PodMonitoring
metadata:
  name: flux-system
  namespace: flux-system
  labels:
    app.kubernetes.io/part-of: flux
    app.kubernetes.io/component: monitoring
spec:
  selector:
    matchExpressions:
    - key: app
      operator: In
      values:
      - helm-controller
      - source-controller
      - kustomize-controller
      - notification-c…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@heretic098
Comment options

Answer selected by pintohutch
Comment options

You must be logged in to vote
1 reply
@pintohutch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants