Автор: Julien Pivotto, Brian Brazil
Издательство: O’Reilly Media, Inc.
Год: 2022-11-28
Страниц: 370
Язык: английский
Формат: epub, mobi
Размер: 10.2 MB
Get up to speed with Prometheus, the metrics-based monitoring system used in production by tens of thousands of organizations. This updated second edition provides site reliability engineers, Kubernetes administrators, and software developers with a hands-on introduction to the most important aspects of Prometheus, including dashboarding and alerting, direct code instrumentation, and metric collection from third-party systems with exporters.
Prometheus server maintainer Julien Pivotto and core developer Brian Brazil demonstrate how you can use Prometheus for application and infrastructure monitoring. This book guides you through Prometheus setup, the Node Exporter, and the Alertmanager, and then shows you how to use these tools for application and infrastructure monitoring. You'll understand why this open source system has continued to gain popularity in recent years. Supplemental material (code examples, configuration files, etc.) is available for download at GitHub.
Prometheus is primarily written in Go and licensed under the Apache 2.0 license. For instrumenting your own code, there are client libraries in all the popular languages and runtimes, including Go, Java/JVM, C#/.Net, Python, Ruby, Node.js, Haskell, Erlang, and Rust. Software like Kubernetes and Docker are already instrumented with Prometheus client libraries. For third-party software that exposes metrics in a non-Prometheus format, there are hundreds of integrations available. These are called exporters, and include HAProxy, MySQL, PostgreSQL, Redis, JMX, SNMP, Consul, and Kafka. A friend of Brian even added support for monitoring Minecraft servers, as he cares a lot about his frames per second.
You will:
Know where and how much instrumentation to apply to your application code
Monitor your infrastructure with Node Exporter and use new collectors for network system pressure metrics
Get an introduction to Grafana, a popular tool for building dashboards
Use service discovery and the new HTTP SD monitoring system to provide different views of your machines and services
Use Prometheus with Kubernetes and examine exporters you can use with containers
Discover Prometheus new improvements and features, including trigonometry functions
Learn how Prometheus supports important security features including TLS and basic authentication
Скачать Prometheus: Up & Running, 2nd Edition (Third Early Release)