kube/prometheus-operator
2022-09-28 09:32:31 +03:00
..
application.yml Move kube-state-metrics 2022-09-26 15:50:58 +03:00
blackbox-exporter.yml Migrate to Prometheus Operator 2022-09-11 16:38:16 +03:00
bundle.yml Migrate to Prometheus Operator 2022-09-11 16:38:16 +03:00
mikrotik-exporter.yml Migrate to Prometheus Operator 2022-09-11 16:38:16 +03:00
node-exporter.yml prometheus-operator: Add node label to node-exporters 2022-09-28 09:32:31 +03:00
README.md prometheus-operator: Fix Alertmanager integration 2022-09-20 12:22:49 +03:00
snmp-exporter.yml prometheus-operator: Add snmp_ prefix 2022-09-20 17:09:26 +03:00
snmp.yml prometheus-operator: Fix SNMP for older HP printers 2022-09-20 23:26:09 +03:00

Prometheus operator

curl -L https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.59.0/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)