Prometheus: Up & Running: Infrastructure and Application Performance Monitoring

Brian Brazil



Get up to speed with Prometheus, the metrics-based monitoring system used by tens of thousands of organizations in production. This practical guide provides application developers, sysadmins, and DevOps practitioners with a hands-on introduction to the most important aspects of Prometheus, including infrastructure and application monitoring, dashboarding and alerting, direct code instrumentation, and metric collection from third-party systems with exporters.

This open source system has gained popularity over the past few years for good reason. With its simple yet powerful data model and query language, Prometheus does one thing, and it does it well. Author and Prometheus developer Brian Brazil guides you through Prometheus setup, the Node exporter, and the Alertmanager, then demonstrates how to use them for application and infrastructure monitoring.

  • Know where and how much to apply instrumentation to your application code
  • Identify metrics with labels using unique key-value pairs
  • Get an introduction to Grafana, a popular tool for building dashboards
  • Learn how to use the Node Exporter to monitor your infrastructure
  • Use service discovery to provide different views of your machines and services
  • Use Prometheus with Kubernetes and examine exporters you can use with containers
  • Convert data from other monitoring systems into the Prometheus format


快速掌握 Prometheus,這個在數以萬計的組織中用於生產環境的基於指標的監控系統。這本實用指南為應用程式開發人員、系統管理員和 DevOps 從業人員提供了對 Prometheus 最重要的方面的實踐介紹,包括基礎設施和應用程式監控、儀表板和警報、直接代碼儀器化以及從第三方系統收集指標的匯出器。

這個開源系統在過去幾年中因其簡單而強大的數據模型和查詢語言而受到廣泛的歡迎,並且有著充分的理由。作者和 Prometheus 開發人員 Brian Brazil 將引導您完成 Prometheus 的設置、Node 匯出器和 Alertmanager,然後演示如何將它們用於應用程式和基礎設施監控。

- 知道在應用程式代碼中應該在哪裡以及如何應用儀器化
- 使用唯一的鍵值對標籤識別指標
- 獲得 Grafana 的介紹,這是一個流行的建立儀表板的工具
- 學習如何使用 Node 匯出器監控您的基礎設施
- 使用服務發現提供機器和服務的不同視圖
- 將 Prometheus 與 Kubernetes 一起使用,並檢查您可以在容器中使用的匯出器
- 將來自其他監控系統的數據轉換為 Prometheus 格式