Prometheus

Prometheus Stack Review on kubernetes https://www.cncf.io/blog/2021/10/25/prometheus-definitive-guide-part-iii-prometheus-operator/

  • helm upgrade –install -n monitoring -f monitoring/values_prometheus.yaml prometheus prometheus-community/prometheus –atomic
  • helm install -n monitoring –atomic -f values_prometheus_stack.yaml prometheus promethefor n in \((kubectl get namespaces -o jsonpath={..metadata.name}); do kubectl delete --ignore-not-found --namespace=\)n service prometheus-operated alertmanager-operated done

kubectl delete –ignore-not-found customresourcedefinitions
prometheuses.monitoring.coreos.com
servicemonitors.monitoring.coreos.com
podmonitors.monitoring.coreos.com
alertmanagers.monitoring.coreos.com
prometheusrules.monitoring.coreos.comus-community/kube-prometheus-stack