"Prometheus, a Cloud Native Computing Foundation project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true." - https://github.com/prometheus/prometheus
Restart prometheus pods in kubernetes
kubectl get pods -l component=prometheus -o name | while read -r pod ; do echo $pod kubectl port-forward "$pod" 9090 & sleep 10 # to let the port-forward establish before using it curl -X POST localhost:9090/-/reload kill %% sleep 5 # to let the previous process exit before starting another port forward done
- https://prometheus.io/docs/prometheus/latest/querying/basics: Good intro to promql fundamentals.
- https://github.com/cortexproject/cortex: "Horizontally scalable, highly available, multi-tenant, long term storage for Prometheus."
- https://github.com/thanos-io/thanos: "Thanos is a set of components that can be composed into a highly available metric system with unlimited storage capacity, which can be added seamlessly on top of existing Prometheus deployments."