Prometheus

From I Will Fear No Evil
Jump to navigation Jump to search

Notes on working with Prometheus via ArgoCD

Currently using ArgoCD and the kube prometheus stack installation there is a bug. This notes the fix | github bug in ArgoCD. The fix is basically to create 2 applications in the same namespace. First is the CRD, and the second is the stack install itself. This appears to be due to the way kubectl deals with the overall installation.

CRD changes:

    repoURL: https://github.com/prometheus-community/helm-charts.git
    path: charts/kube-prometheus-stack/crds/
    targetRevision: kube-prometheus-stack-31.0.0
    directory:
      recurse: true
    syncOptions:
    - Replace=true

Main application changes: (edit yaml manually from within creation part of GUI)

    repoURL: https://prometheus-community.github.io/helm-charts
    chart: kube-prometheus-stack
    targetRevision: 31.0.0
    helm:
      releaseName: ...
      skipCrds: true
      values: |
        ...