kube/prometheus-operator
Lauri Võsandi 19d66801df prometheus-operator: Update node-exporter and add pve2 2023-01-07 10:27:05 +02:00
..
.gitignore prometheus-operator: Remove bundle.yml 2022-12-24 21:07:07 +02:00
README.md prometheus-operator: Bump bundle version 2022-12-21 14:08:23 +02:00
application.yml prometheus-operator: Post only critical alerts to Slack 2022-12-21 14:13:57 +02:00
blackbox-exporter.yml prometheus-operator: Bump blackbox exporter replica count to 3 2022-10-04 10:11:53 +03:00
mikrotik-exporter.yml prometheus-exporter: Fix antiaffinity rule for Mikrotik exporter 2022-11-12 16:50:31 +02:00
node-exporter.yml prometheus-operator: Update node-exporter and add pve2 2023-01-07 10:27:05 +02:00
snmp-exporter.yml prometheus-operator: Remove pulled UPS-es 2022-10-03 10:04:24 +03:00
snmp.yml prometheus-operator: Fix SNMP for older HP printers 2022-09-20 23:26:09 +03:00

README.md

Prometheus operator

curl -L https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.61.1/bundle.yaml | sed -e 's/namespace: default/namespace: prometheus-operator/g' > bundle.yml
kubectl create namespace prometheus-operator
kubectl apply --server-side -n prometheus-operator -f bundle.yml
kubectl delete -n prometheus-operator configmap snmp-exporter
kubectl create -n prometheus-operator configmap snmp-exporter --from-file=snmp.yml
kubectl apply -n prometheus-operator -f application.yml -f node-exporter.yml -f blackbox-exporter.yml -f snmp-exporter.yml -f mikrotik-exporter.yml

Slack

 kubectl create -n prometheus-operator secret generic slack-secrets \
    --from-literal=webhook-url=https://hooks.slack.com/services/...

Mikrotik exporter

 kubectl create -n prometheus-operator secret generic mikrotik-exporter \
  --from-literal=MIKROTIK_PASSWORD='f7W!H*Pu' \
  --from-literal=PROMETHEUS_BEARER_TOKEN=$(cat /dev/urandom | base64 | head -c 30)