当前位置:网站首页>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&
边栏推荐
- 【ICKIM 2022】第四届知识与信息管理国际会议
- What if win11 cannot open its own anti-virus software? Win11's built-in anti-virus function cannot be turned on
- Leetcode537. Complex multiplication (yes, solved)
- Is it safe to open an account for stock speculation through the online account manager?
- Jushi | Haitai Fangyuan appears at the 5th Digital China Construction Summit
- What is informatization? What is digitalization? What are the connections and differences between the two?
- Zombie‘s Treasure Chest(枚举)
- Easyrecovery15 data recovery software with high recovery rate and high download volume
- Pycharm automatically adds header comments when creating py files
- [unity] random generation of two-dimensional cave map
猜你喜欢
![[Unity] 二维洞穴地图随机生成](/img/ec/7433f6e942fc3d0b03cac37ac87e7b.png)
[Unity] 二维洞穴地图随机生成

大咖观点+500强案例,软件团队应该这样提升研发效能

Jushi | Haitai Fangyuan appears at the 5th Digital China Construction Summit

Web middleware log analysis script 3.0 (shell script)

Prime Ring Problem

8、学习MySQL 创建数据表

The second China rust developer conference is coming, and the complete agenda has been exposed!

Test questions and answers of the latest Beijing Construction eight (materialman) mock examination in 2022

Linear relationship between vectors

Two stage submission and three stage submission
随机推荐
Handler消息机制-FWK层
poj1521
Ideal Path(UVA - 1599)
“蔚来杯“2022牛客暑期多校训练营2 个人题解集合
Browser development and use skills
Two stage submission and three stage submission
Prime Ring Problem
《分布式微服务电商》专题(一)-项目简介
3059. 雕塑(jzoj)
U++ learning notes ustruct, uenum declaration and function library simple function implementation
当博客被黑客攻击时该怎么办?
[Go]三、最简单的RestFul API服务器
Stack Title: basic calculator
旅行 (拆点分层)
两阶段提交和三阶段提交
[combinational logic circuit] - encoder
Oracle is nested at multiple levels, and the alias problem of the table cannot be found
Test questions and answers of the latest Beijing Construction eight (materialman) mock examination in 2022
Tutorial on the principle and application of database system (057) -- MySQL exercises
Speech comprehension - structural analysis exercise of fragment reading