当前位置:网站首页>Y77. Chapter IV Prometheus' monitoring system and practice -- Prometheus' service discovery mechanism (VIII)
Y77. Chapter IV Prometheus' monitoring system and practice -- Prometheus' service discovery mechanism (VIII)
2022-07-26 01:34:00 【Raymond Linux O & M】
8.prometheus Service discovery mechanism
prometheus By default pull To pull monitoring data , That is, go to the target host regularly to grab metrics data , Every captured target needs to expose one HTTP Interface ,prometheus Through this exposed interface, the corresponding index data can be obtained , In this way, the target server needs to decide which targets to collect , By configuring scrape_configs All kinds of job To achieve , Unable to dynamically perceive new services , If node or component information is added later , You have to modify it manually prometheus To configure , And restart prometheus, Very inconvenient , So there is dynamic service discovery , Dynamic service discovery can automatically discover new endpoints in the cluster , And add to the configuration , Discover through services ,prometheus You can find out what needs to be monitored Target list , And then poll these Target Get monitoring data .
prometheus Acquisition data source target There are many ways , Such as static configuration and service discovery configuration ,prometheus Support multiple service discovery ,prometheus There are many kinds of service discovery supported at present , Commonly used are mainly divided into the following :
kubernetes_sd_configs:#kubernetes Service discovery , Give Way prometheus Dynamic discovery kubernetes Target monitored in
static_configs:# Static service discovery , be based on prometheus The monitoring target specified in the configuration file
consul_sd_donfigs:#Consul Service discovery , be based on consul Service dynamic discovery monitoring target
file_sd_configs:# Implement service discovery based on specified files , Discover monitoring targets based on specified files
dns_sd_configs:#DNS Service discovery monitoring objectives
prometheus Static service discovery for static_configs&
边栏推荐
- 两阶段提交和三阶段提交
- Google Gson用法详解
- Prime Ring Problem
- Fiddler5+ lightning simulator 4.0 settings for app packet capturing
- C language enumeration types and unions
- I just test it
- Network performance evaluation tool ping/mtr
- 电视机软件烧录
- U++ learning notes ustruct, uenum declaration and function library simple function implementation
- Kubernetes Pod启动流程
猜你喜欢

当博客被黑客攻击时该怎么办?

PtGui pro12 vertical line correction

The gym closes 8000 stores a year. How does the studio that bucks the trend and makes profits open?

NiO simple example

Zero copy of network file transfer
![[unity] random generation of two-dimensional cave map](/img/ec/7433f6e942fc3d0b03cac37ac87e7b.png)
[unity] random generation of two-dimensional cave map

How to obtain the cash flow data of advertising services to help analyze the advertising effect?

Network performance evaluation tool ping/mtr

Detailed explanation of redis data structure, combined with books

The sales volume has won the championship repeatedly. Is the secret of Wuling's success only low price?
随机推荐
01. MySQL transaction isolation level and concurrent database access
"Yuanqi Cola" is not the end point, "China Cola" is
Mysql_ Note1
推荐⼀款超好⽤的UI⾃动化⼯具: UiAutomator2!
Cross linguistic transfer of correlations between parts of speech and Gazette Features Reading Notes
U++ learning notes ustruct, uenum declaration and function library simple function implementation
Leetcode537. 复数乘法(可以,已解决)
"Weilai Cup" 2022 Niuke summer multi school training camp 2 h.[take the elevator] maintenance section
Is it safe for Huatai Securities to open an account online? How to handle it?
Understand Linglong platform unified access service from simple to deep Monet
FastJson 处理泛型
Google gson usage details
华为无线设备WDS配置命令
Causes of signal degradation in optical fiber communication
Dijkstra find the shortest path
FreeBSD bNXT Ethernet driver source code reading record 2:
Case when of SQL
Prime Ring Problem
8. Learn Mysql to create data tables
电视机软件烧录