当前位置:网站首页>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&
边栏推荐
猜你喜欢

The sales volume has won the championship repeatedly. Is the secret of Wuling's success only low price?

C language enumeration types and unions

《分布式微服务电商》专题(一)-项目简介

Codisvsrediscluster: which cluster scheme should I choose?

FreeBSD bNXT Ethernet driver source code reading record 2:

Basic version of Google browser debugging tool (I)

【ICKIM 2022】第四届知识与信息管理国际会议

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

MulDA: A Multilingual Data Augmentation Framework for Low-Resource Cross-Lingual NER 阅读笔记

销量连连夺冠,五菱的成功秘诀只有低价吗?
随机推荐
Is it safe to open an account for stock speculation through the online account manager?
Tutorial on principles and applications of database system (054) -- MySQL query (16): usage of date time function
Is it safe for Huatai Securities to open an account online? How to handle it?
Prime Ring Problem
"Weilai Cup" 2022 Niuke summer multi school training camp 2 h.[take the elevator] maintenance section
快速创建题目文件夹
[Go]三、最简单的RestFul API服务器
Cross-lingual Transfer of Correlations between Parts of Speech and Gaze Features 阅读笔记
Leetcode 537. complex multiplication (netizens' thoughts, ashamed)
Oracle - isupplier portal Invoicing error
Google gson usage details
B - Krypton Factor (dfs+ backtracking method)
Handler消息机制-FWK层
What are the ways to quickly improve programming skills in the process of programming learning?
U++学习笔记 UStruct、UEnum声明以及函数库简单函数实现
“蔚来杯“2022牛客暑期多校训练营2 K.[Link with Bracket Sequence I] 括号序列 DP
C语言进阶(一)动态分配内存
"Yuanqi Cola" is not the end point, "China Cola" is
Jushi | Haitai Fangyuan appears at the 5th Digital China Construction Summit
Kubernetes Pod启动流程