Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

Latest commit

 

History

History
29 lines (23 loc) · 1.45 KB

File metadata and controls

29 lines (23 loc) · 1.45 KB

Prometheus

Prometheus gathers data from data exporters such as node exporter and blackbox. Those exporters keep track of services, pods, nodes, disks and network usages.

Prometheus service is used to expose Prometheus to public domain via ingress nginx

You can change the URL on which Prometheus will be accessible with changing host in the service file.

  - host: "prometh.example.com"

Deploy Prometheus

kubectl apply -f monitoring/prometheus/full-access.yaml -n kube-system
kubectl apply -f monitoring/prometheus/prometheus-0serviceaccount.yaml -n kube-system
kubectl apply -f monitoring/prometheus/prometheus-configmap.yaml -n kube-system
kubectl apply -f monitoring/prometheus/prometheus-service.yaml -n kube-system
kubectl apply -f monitoring/prometheus/prometheus-statefulset.yaml -n kube-system
kubectl apply -f monitoring/prometheus/kube-state-metrics-service.yaml -n kube-system
kubectl apply -f monitoring/prometheus/kube-state-metrics-0serviceaccount.yaml -n kube-system
kubectl apply -f monitoring/prometheus/kube-state-metrics-deployment.yaml -n kube-system
kubectl apply -f monitoring/prometheus/node-exporter-ds.yaml -n kube-system
kubectl apply -f monitoring/prometheus/node-exporter-0serviceaccount.yaml -n kube-system
kubectl apply -f monitoring/prometheus/blackbox-service.yaml -n kube-system
kubectl apply -f monitoring/prometheus/rabbitmq-blackbox-dep.yaml -n kube-system