当前位置:网站首页>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&
边栏推荐
- NiO simple example
- "Wei Lai Cup" 2022 Niuke summer multi school training camp 2 d.[link with game glitch] two point answer +spfa ring
- 【Go】如何控制协程的最大并发数
- 【数据挖掘】生成模型和判别模型的区别及优缺点
- Network performance evaluation tool ping/mtr
- 如何获取广告服务流量变现数据,助力广告效果分析?
- Arthas watch 命令查看数组中对象的属性
- 当博客被黑客攻击时该怎么办?
- Cross linguistic transfer of correlations between parts of speech and Gazette Features Reading Notes
- TV software burning
猜你喜欢

Nodejs builds cloud native microservice applications based on dapr, a quick start guide from 0 to 1

Special topic of distributed micro service e-commerce (I) - Project Introduction

元素和小于等于阈值的正方形的最大边长(来源:力扣(LeetCode))

聚势|海泰方圆亮相第五届数字中国建设峰会

2022年最新北京建筑八大员(材料员)模拟考试试题及答案

记一次自定义 Redis 分布式锁导致的故障

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

机器学习:贝叶斯网络

Detailed explanation of redis data structure, combined with books
![[ickim 2022] the Fourth International Conference on knowledge and information management](/img/e0/1d7aebc6a6fe42c4f4ddd47a2045ec.jpg)
[ickim 2022] the Fourth International Conference on knowledge and information management
随机推荐
“蔚来杯“2022牛客暑期多校训练营2 G.[Link with Monotonic Subsequence] 分块构造
FastJson 处理泛型
Jushi | Haitai Fangyuan appears at the 5th Digital China Construction Summit
Arthas watch 命令查看数组中对象的属性
Quickly create a topic folder
元素和小于等于阈值的正方形的最大边长(来源:力扣(LeetCode))
Google gson usage details
Iftnews | suppose this is what the metauniverse looks like 20 years later
Cross-lingual Transfer of Correlations between Parts of Speech and Gaze Features 阅读笔记
What are the ways to quickly improve programming skills in the process of programming learning?
MulDA: A Multilingual Data Augmentation Framework for Low-Resource Cross-Lingual NER 阅读笔记
Stack Title: basic calculator
[Go]三、最简单的RestFul API服务器
PTGui Pro12垂直线纠正
Detailed explanation of redis data structure, combined with books
网络文件传输之零拷贝
[software development specification II] prohibited item development specification
Leetcode 537. 复数乘法(网友思路,自愧不如)
Dijkstra find the shortest path
推荐⼀款超好⽤的UI⾃动化⼯具: UiAutomator2!