Add Prometheus
This commit is contained in:
parent
38a8c702b0
commit
e3766d7c8b
@ -23,3 +23,83 @@ spec:
|
|||||||
prune: true
|
prune: true
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
|
---
|
||||||
|
# https://github.com/prometheus-community/helm-charts/issues/1500#issuecomment-1030201685
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prom-crds
|
||||||
|
namespace: argo
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/prometheus-community/helm-charts.git
|
||||||
|
path: charts/kube-prometheus-stack/crds/
|
||||||
|
targetRevision: kube-prometheus-stack-45.7.1
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: "https://kubernetes.default.svc"
|
||||||
|
namespace: prometheus
|
||||||
|
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- Replace=true
|
||||||
|
---
|
||||||
|
# https://github.com/prometheus-community/helm-charts/issues/1500#issuecomment-1030201685
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: prometheus-community
|
||||||
|
namespace: argo
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
|
||||||
|
source:
|
||||||
|
chart: kube-prometheus-stack
|
||||||
|
repoURL: https://prometheus-community.github.io/helm-charts
|
||||||
|
targetRevision: 45.7.1
|
||||||
|
helm:
|
||||||
|
parameters:
|
||||||
|
- name: grafana.enabled
|
||||||
|
value: "false"
|
||||||
|
# https://cogarius.medium.com/3-3-complete-guide-to-ci-cd-pipelines-with-drone-io-on-kubernetes-drone-metrics-with-prometheus-c2668e42b03f
|
||||||
|
# "Kubernetes configuration"
|
||||||
|
- name: prometheus.ingress.enabled
|
||||||
|
value: "true"
|
||||||
|
- name: prometheus.ingress.ingressClassName
|
||||||
|
value: traefik
|
||||||
|
- name: prometheus.ingress.hosts[0]
|
||||||
|
value: prometheus.avril
|
||||||
|
# https://github.com/prometheus-operator/prometheus-operator/issues/5197
|
||||||
|
# Updating CRDs to matching version didn't work
|
||||||
|
- name: prometheus.prometheusSpec.scrapeInterval
|
||||||
|
value: 30s
|
||||||
|
- name: prometheus.prometheusSpec.evaluationInterval
|
||||||
|
value: 30s
|
||||||
|
- name: prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.storageClassName
|
||||||
|
value: longhorn
|
||||||
|
- name: prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.accessModes[0]
|
||||||
|
value: ReadWriteOnce
|
||||||
|
- name: prometheus.prometheusSpec.storageSpec.volumeClaimTemplate.spec.resources.requests.storage
|
||||||
|
value: 50Gi
|
||||||
|
- name: prometheus-node-exporter.prometheus.monitor.relabelings[0].sourceLabels[0]
|
||||||
|
value: "__meta_kubernetes_pod_node_name"
|
||||||
|
- name: prometheus-node-exporter.prometheus.monitor.relabelings[0].targetLabel
|
||||||
|
value: node_name
|
||||||
|
skipCrds: true
|
||||||
|
|
||||||
|
destination:
|
||||||
|
server: "https://kubernetes.default.svc"
|
||||||
|
namespace: prometheus
|
||||||
|
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user