Updating prom operator to current latest

This commit is contained in:
Moritz Graf 2024-02-03 17:19:09 +01:00
parent a7693bdbb6
commit 4752db1e3a
2 changed files with 30 additions and 30 deletions

View File

@ -275,7 +275,7 @@ The prometheus-operator, now called [kube-prometheus-stack](https://github.com/p
kubectl create ns monitoring kubectl create ns monitoring
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update helm repo update
helm upgrade --install --create-namespace prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml helm upgrade --install --create-namespace prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml --version 56.6.1
# alert configuration # alert configuration
NAMESPACES_TO_ALERT=( kube-system monitoring cert-manager datalab ingress-nginx mailu minio velero web openebs ) NAMESPACES_TO_ALERT=( kube-system monitoring cert-manager datalab ingress-nginx mailu minio velero web openebs )
for i in "${NAMESPACES_TO_ALERT[@]}"; do for i in "${NAMESPACES_TO_ALERT[@]}"; do

View File

@ -18,36 +18,36 @@ kubeProxy:
prometheus: prometheus:
prometheusSpec: prometheusSpec:
shards: null # shards: null
# https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L2681 # https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L2681
additionalScrapeConfigs: # additionalScrapeConfigs:
- job_name: muc-kitchen # - job_name: muc-kitchen
scrape_interval: 1m # scrape_interval: 1m
basic_auth: # basic_auth:
username: ahfahfoozuVeezoong6c # username: ahfahfoozuVeezoong6c
password: aeThoom4deiNgeici0Th # password: aeThoom4deiNgeici0Th
static_configs: # static_configs:
- targets: [ 'dyndns-muc.moritzgraf.de:60200'] # - targets: [ 'dyndns-muc.moritzgraf.de:60200']
labels: # labels:
namespace: monitoring # namespace: monitoring
- job_name: muc-living # - job_name: muc-living
scrape_interval: 1m # scrape_interval: 1m
basic_auth: # basic_auth:
username: Gul3zooSa5Waphophuag # username: Gul3zooSa5Waphophuag
password: eeLie9Mai9ahfi5ahy2i # password: eeLie9Mai9ahfi5ahy2i
static_configs: # static_configs:
- targets: [ 'dyndns-muc.moritzgraf.de:60201'] # - targets: [ 'dyndns-muc.moritzgraf.de:60201']
labels: # labels:
namespace: monitoring # namespace: monitoring
- job_name: rgbg-living # - job_name: rgbg-living
scrape_interval: 1m # scrape_interval: 1m
basic_auth: # basic_auth:
username: oot6ainge9aef6iaf4Cu # username: oot6ainge9aef6iaf4Cu
password: oonohNaej6soh7TooPha # password: oonohNaej6soh7TooPha
static_configs: # static_configs:
- targets: [ 'dyndns.moritzgraf.de:60200'] # - targets: [ 'dyndns.moritzgraf.de:60200']
labels: # labels:
namespace: monitoring # namespace: monitoring
storageSpec: storageSpec:
## Using PersistentVolumeClaim ## Using PersistentVolumeClaim
## ##