prometheus02-file_sd_configs
发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,1.配置文件(自动发现)[root@zabbix-proxy prometheus]# cat prometheus.yml# my global configglobal: scrape_inte
千家信息网最后更新 2026年11月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安全错误
数据库的锁怎样保障安全
南京欣网互联网络科技有限公司
湖南永感互联网科技有限公司
苏州找大状互联网科技有限公司
互联网科技深圳
涨乐互联网科技
郑州华宇互联网科技
国外互联网科技网站
互联网养老 桔豆科技
互联网科技类展会
湖南洣水互联网科技有限公司扣款
南平创想时代互联网科技有限公司
宜昌元轩互联网科技有限公司
本届互联网博览会上的黑科技
元气玛特互联网科技公司是外包吗
怎样加入科技互联网
21世纪互联网科技成就
图游互联网科技
互联网科技包装股
现代互联网科技公司
中国主要互联网科技公司
北京互联网科技
四川狮子座互联网科技
国外互联网科技网站
互联网 科技馆
辽宁互联网新科技
高科技互联网发展前景如何
山东子淼互联网科技有限公司
互联网科技手抄报图片
西安左小互联网科技有限公司
悟空问答互联网科技