prometheus02-file_sd_configs
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,1.配置文件(自动发现)[root@zabbix-proxy prometheus]# cat prometheus.yml# my global configglobal: scrape_inte
千家信息网最后更新 2025年12月03日prometheus02-file_sd_configs
1.配置文件(自动发现)
[root@zabbix-proxy prometheus]# cat prometheus.yml# my global configglobal: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. # scrape_timeout is set to the global default (10s).# Alertmanager configurationalerting: alertmanagers: - static_configs: - targets: # - alertmanager:9093# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.rule_files: # - "first_rules.yml" # - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:# Here it's Prometheus itself.scrape_configs: # The job name is added as a label `job=` to any timeseries scraped from this config. - job_name: 'prometheus' file_sd_configs: - files: ['/usr/local/prometheus/sd_config/*.yml'] refresh_interval: 5s[root@zabbix-proxy prometheus]#
2. prometheus 软加载配置文件
kill -hup pid
3.prometheus 校验配置文件
[root@zabbix-proxy prometheus]# /usr/local/prometheus/promtool check config /usr/local/prometheus/prometheus.ymlChecking /usr/local/prometheus/prometheus.yml SUCCESS: 0 rule files found[root@zabbix-proxy prometheus]#
4.查看被软加载(自动发现)的配置文件
[root@zabbix-proxy sd_config]# pwd/usr/local/prometheus/sd_config[root@zabbix-proxy sd_config]# cat prometheus-server.yml - labels: service: prometheus idc: su project: monitor targets: - 192.168.249.11:9090[root@zabbix-proxy sd_config]#
5.同一类项目
文件
配置
项目
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
腾讯服务器房间多大
福建的网络安全概念股
时钟同步服务器启动失败
数据库如何用下拉列表
信息网络安全法律法规文件
四川新华互联网科技学院学校
数据库的连接名
海外服务器链接
用友邮箱服务器地址是多少
网络安全知识幼儿园亲子照
cs1.6怎么加服务器
sql不显示系统数据库
我的世界最新服务器缺管理员
电力行业网络安全仿真验证
软件开发技巧视频
电力系统网络安全探针是什么
单位加强网络安全措施
智慧金沙网络安全
如何查数据库版本号
主题党日网络安全
财务办公室服务器
成年人如何学习网络安全
mc1.9的服务器
网络安全守法要求及承诺
服务器怎么显示别的玩家血量
软件开发问题说明及经验教训
饥荒自己建的服务器掉帧
世界最好的网络安全大学
魔兽世界血吼服务器
数据库中国会议