Hands-On infrastructure monitoring with Prometheus : implement and scale queries, dashboards, and alerting across machines and containers /
Prometheus is an open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach. This book will be your practical guide to setup Prometheus on your cloud, virtual machine, container, and server ecosystem.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited,
2019.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Section 1: Introduction; Chapter 1: Monitoring Fundamentals; Defining of monitoring; The value of monitoring; Organizational contexts; Monitoring components; Whitebox versus blackbox monitoring; Understanding metrics collection; An overview of the two collection approaches; Push versus pull; What to measure; Google's four golden signals; Brendan Gregg's USE method; Tom Wilkie's RED method; Summary; Questions; Further reading; Chapter 2: An Overview of the Prometheus Ecosystem
- Metrics collection with PrometheusHigh-level overview of the Prometheus architecture; Exposing internal state with exporters; Exporter fundamentals; Alert routing and management with Alertmanager; Alerting routes; Visualizing your data; Summary; Questions; Further reading; Chapter 3: Setting Up a Test Environment; Code organization; Machine requirements; Hardware requirements; Recommended software; VirtualBox; Vagrant; Minikube; kubectl; Spinning up a new environment; Automated deployment walkthrough; Prometheus; Grafana; Alertmanager; Cleanup; Advanced deployment walkthrough; Prometheus
- GrafanaAlertmanager; Node Exporter; Validating your test environment; Summary; Questions; Further reading; Section 2: Getting Started with Prometheus; Chapter 4: Prometheus Metrics Fundamentals; Understanding the Prometheus data model; Time series data; Time series databases; Prometheus local storage; Data flow; Memory; Write ahead log; Disk; Layout; Prometheus data model; Notation; Metric names; Metric labels; Samples; Cardinality; A tour of the four core metric types; Counter; Gauge; Histogram; Summaries; Longitudinal and cross-sectional aggregations; Cross-sectional aggregation
- Longitudinal aggregationSummary; Questions; Further reading; Chapter 5: Running a Prometheus Server; Deep dive into the Prometheus configuration; Prometheus startup configuration; The config section; The storage section; The web section; The query section; Prometheus configuration file walkthrough; Global configuration; Scrape configuration; Managing Prometheus in a standalone server; Server deploy; Configuration inspection; Cleanup; Managing Prometheus in Kubernetes; Static configuration; Kubernetes environment; Prometheus server deployment; Adding targets to Prometheus
- Dynamic configuration
- the Prometheus OperatorKubernetes environment; Prometheus Operator deployment; Prometheus server deployment; Adding targets to Prometheus; Summary; Questions; Further reading; Chapter 6: Exporters and Integrations; Test environments for this chapter; Static infrastructure test environment; Kubernetes test environment; Operating system exporter; The Node Exporter; Configuration; Deployment; Container exporter; cAdvisor; Configuration; Deployment; kube-state-metrics; Configuration; Deployment; From logs to metrics; mtail; Configuration; Deployment; Grok exporter