跳转到主要内容

书籍

Prometheus 文档

Prometheus 文档。内容保持上游原样。

11 章57 页更新于 12 小时前

开始阅读

目录57

  1. 第 1 章 Alerting 0 页
  2. 第 2 章 Concepts 3 页
    1. 2.1 Data model Prometheus fundamentally stores all data as time series: streams of timestamped values belonging to the sam... 12 小时前
    2. 2.2 Jobs and instances In Prometheus terms, an endpoint you can scrape is called an instance, usually corresponding to a single pr... 12 小时前
    3. 2.3 Metric types The Prometheus instrumentation libraries offer four core metric types. With the exception of native histogr... 12 小时前
  3. 第 3 章 Guides 13 页
    1. 3.1 Securing Prometheus API and UI endpoints using basic auth Prometheus supports basic authentication (aka "basic auth") for connections to the Prometheus expression br... 12 小时前
    2. 3.2 Monitoring Docker container metrics using cAdvisor cAdvisor (short for container Advisor) analyzes and exposes resource usage and performance data from runnin... 12 小时前
    3. 3.3 Contributor's guide This document provides general guidelines for contributors of all experience levels. If you are new, you mi... 12 小时前
    4. 3.4 Docker Swarm Prometheus can discover targets in a Docker Swarm cluster, as of v2.20.0. This guide demonstrates how to us... 12 小时前
    5. 3.5 Use file-based service discovery to discover scrape targets Prometheus offers a variety of service discovery options for discovering scrape targets, including Kubernet... 12 小时前
    6. 3.6 Instrumenting a Go application for Prometheus Prometheus has an official Go client library that you can use to instrument Go applications. In this guide,... 12 小时前
    7. 3.7 Understanding and using the multi-target exporter pattern This guide will introduce you to the multi-target exporter pattern. To achieve this we will: describe the m... 12 小时前
    8. 3.8 Monitoring Linux host metrics with the Node Exporter The Prometheus Node Exporter exposes a wide variety of hardware- and kernel-related metrics. In this guide,... 12 小时前
    9. 3.9 OpenMetrics 2.0 Migration Guide for Client Libraries This guide covers the changes from OpenMetrics (OM) 1.0 to OpenMetrics 2.0 that affect client library (i.e.... 12 小时前
    10. 3.10 Using Prometheus as your OpenTelemetry backend Prometheus supports OTLP (aka "OpenTelemetry Protocol") ingestion through HTTP. Enable the OTLP receiver By... 12 小时前
    11. 3.11 Using the Prometheus query log Prometheus has the ability to log all the queries run by the engine to a log file, as of 2.16.0. This guide... 12 小时前
    12. 3.12 Securing Prometheus API and UI endpoints using TLS encryption Prometheus supports Transport Layer Security (TLS) encryption for connections to Prometheus instances (i.e.... 12 小时前
    13. 3.13 UTF-8 in Prometheus Versions of Prometheus before 3.0 required that metric and label names adhere to a strict set of character ... 12 小时前
  4. 第 4 章 Instrumenting 8 页
    1. 4.1 Client libraries Before you can monitor your services, you need to add instrumentation to their code via one of the Promethe... 12 小时前
    2. 4.2 Scrape protocol content negotiation This document specifies the protocol negotiation mechanism used by Prometheus when scraping metrics from ta... 12 小时前
    3. 4.3 UTF-8 metric and label name escaping schemes This document specifies the different escaping schemes used by Prometheus during generation of text exposit... 12 小时前
    4. 4.4 Exporters and integrations There are a number of libraries and servers which help in exporting existing metrics from third-party syste... 12 小时前
    5. 4.5 Exposition formats As of Prometheus version 2.0, all processes that expose metrics to Prometheus must use a text format, by de... 12 小时前
    6. 4.6 Pushing metrics Occasionally you will need to monitor components which cannot be scraped. The Prometheus Pushgateway allows... 12 小时前
    7. 4.7 Writing client libraries This document covers what functionality and API Prometheus client libraries should offer, with the aim of c... 12 小时前
    8. 4.8 Writing exporters If you are instrumenting your own code, the general rules of how to instrument code with a Prometheus clien... 12 小时前
  5. 第 5 章 Introduction 9 页
    1. 5.1 Comparison to alternatives Scope Graphite focuses on being a passive time series database with a query language and graphing features.... 12 小时前
    2. 5.2 Design documents See the github.com/prometheus/proposals repository to see all the past and current proposals for the Promet... 12 小时前
    3. 5.3 Frequently asked questions What is Prometheus? Prometheus is an open-source system monitoring and alerting toolkit with an active ecos... 12 小时前
    4. 5.4 First steps with Prometheus Welcome to Prometheus! Prometheus is a monitoring platform that collects metrics from monitored targets by ... 12 小时前
    5. 5.5 Glossary Alert An alert is the outcome of an alerting rule in Prometheus that is actively firing. Alerts are sent fr... 12 小时前
    6. 5.6 Media There is a subreddit collecting all Prometheus-related resources on the internet. The following selection o... 12 小时前
    7. 5.7 Overview Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since ... 12 小时前
    8. 5.8 Long-term support Prometheus LTS are selected releases of Prometheus that receive selected bug fixes for an extended period o... 12 小时前
    9. 5.9 Roadmap The following is only a selection of some of the major features we plan to implement in the near future. To... 12 小时前
  6. 第 6 章 Operating 2 页
    1. 6.1 Integrations In addition to client libraries and exporters and related libraries, there are numerous other generic integ... 12 小时前
    2. 6.2 Security model NOTE: Before we dive into the technical details below, we would like to emphasize that Prometheus, as a mon... 12 小时前
  7. 第 7 章 Practices 9 页
    1. 7.1 Alerting We recommend that you read My Philosophy on Alerting based on Rob Ewaschuk's observations at Google. To sum... 12 小时前
    2. 7.2 Consoles and dashboards CAUTION: Starting with Prometheus 3.0, console templates and libraries are no longer bundled with Prometheu... 12 小时前
    3. 7.3 Histograms and summaries Histograms and summaries are more complex metric types. For historical reasons, histograms exist in two var... 12 小时前
    4. 7.4 Instrumentation This page provides an opinionated set of guidelines for instrumenting your code. How to instrument The shor... 12 小时前
    5. 7.5 Metric and label naming The metric and label conventions presented in this document are not required for using Prometheus, but can ... 12 小时前
    6. 7.6 When to use the Pushgateway The Pushgateway is an intermediary service which allows you to push metrics from jobs which cannot be scrap... 12 小时前
    7. 7.7 Remote write tuning Prometheus implements sane defaults for remote write, but many users have different requirements and would ... 12 小时前
    8. 7.8 Recording rules A consistent naming scheme for recording rules makes it easier to interpret the meaning of a rule at a glan... 12 小时前
    9. 7.9 The Zen of Prometheus The Zen of Prometheus is beginner friendly set of core values and guidelines for instrumenting your applica... 12 小时前
  8. 第 8 章 Prometheus 0 页
  9. 第 9 章 Specs 5 页
    1. 9.1 Native Histograms Native histograms were introduced as an experimental feature in November 2022. They are a concept that touc... 12 小时前
    2. 9.2 OpenMetrics 1.0 Version: 1.0 Status: Published Date: November 2020 Authors: Richard Hartmann, Ben Kochie, Brian Brazil, Rob... 12 小时前
    3. 9.3 OpenMetrics 2.0 [EXPERIMENTAL] Version: 2.0.0-rc1 Status: Experimental Date: October 2026 Authors: Arthur Silva Sens, Bartłomiej Płotka, D... 12 小时前
    4. 9.4 Prometheus Remote-Write 1.0 specification Version: 1.0 Status: Published Date: April 2023 This document is intended to define and standardise the API... 12 小时前
    5. 9.5 Prometheus Remote-Write 2.0 specification [EXPERIMENTAL] Version: 2.0-rc.6 Status: Experimental Date: October 2026 The Remote-Write specification, in general, is in... 12 小时前
  10. 第 10 章 Tutorials 4 页
    1. 10.1 Alerting based on metrics In this tutorial we will create alerts on the ping_request_count metric that we instrumented earlier in th... 12 小时前
    2. 10.2 Instrumenting HTTP server written in Go In this tutorial we will create a simple Go HTTP server and instrument it by adding a counter metric to kee... 12 小时前
    3. 10.3 Understanding metric types Prometheus supports four types of metrics: Counter Gauge Histogram Summary Counter Counter is a metric valu... 12 小时前
    4. 10.4 Visualizing metrics using Grafana In this tutorial we will create a simple dashboard using Grafana to visualize the ping_request_count metri... 12 小时前
  11. 第 11 章 Visualization 4 页
    1. 11.1 Expression browser The expression browser is available at /graph on the Prometheus server, allowing you to enter any expressi... 12 小时前
    2. 11.2 Console templates CAUTION: Starting with Prometheus 3.0, console templates and libraries are no longer bundled with Prometheu... 12 小时前
    3. 11.3 Grafana support for Prometheus Grafana is an open-source analytics and visualization platform used to monitor and analyze metrics from var... 12 小时前
    4. 11.4 Perses support for Prometheus Perses is an open-source dashboard and visualization platform designed for observability, with native suppo... 12 小时前