8. Install Prometheus is Easy
▫ CM Tools: Ansible, Chef, Puppet, SaltStack
▫ Kubernetes Addons
▫ DigitalOcean
▫ ...
8
9. Maintain Prometheus is Bothering (1/2)
9
▫ Problems Which Encounter Within K8S
- Configure Target for Many Services
- Configure Many Alert Rules
- Grafana Dashboard Management
10. Maintain Prometheus is Bothering (2/2)
10
▫ Problem Which Encounter Everywhere
- How to Achieve HA
- Reliable Historical Data
- Downsampling
15. What is Kubernetes Operator
▫ An Operator is a Software with Specific Application
Knowledge
▫ Extends the Kubernetes through Custom
Controller/Resource
▫ Enable Users to Create, Configure, and Manage
Applications
15
20. Maintain Prometheus is Bothering
20
▫ Problems Which Encounter Within K8S
- Configure Target for Many Services
- Configure Many Alert Rules
- Grafana Dashboard Management
23. 23
K8S CRD Within Prometheus Operator (2/2)
▫ ServiceMonitor
- 1 ServiceMonitor Mapping to 1 Exporter Service
- All ServiceMonitor Compose Prometheus
Configuration
▫ PrometheusRule
- 1 PrometheusRule Mapping to 1 Rule File
24. 24
How to Monitor A New Service
▫ Precondition
- Prometheus Install/Manage By Operator
▫ Add New Exporter and Related Service
▫ Add New ServiceMonitor/PrometheusRule
▫ Use Helm to Deploy, and The Changes Will be Reloaded
Automatically
25. 25
How to Add A New Grafana Dashboard
▫ Cook Dashboard
▫ Export Dashboard Json File
▫ Use Helm to Deploy to Related K8S ConfigMap
▫ Changes Trigger Grafana Watcher Sidecar to Reload
Automatically
26. Maintain Prometheus is Bothering (1/2)
26
▫ Problems Which Encounter Within K8S
- Configure Target for Many Services
- Configure Many Alert Rules
- Grafana Dashboard Management
▫ Everything Uses Helm to Deploy and Store in Version
Control