prometheus02-file_sd_configs-创新互联
1.配置文件(自动发现)
成都创新互联专注于安庆企业网站建设,自适应网站建设,电子商务商城网站建设。安庆网站建设公司,为安庆等地区提供建站服务。全流程按需定制,专业设计,全程项目跟踪,成都创新互联专业和态度为您提供的服务[root@zabbix-proxy prometheus]# cat prometheus.yml # my global config global: 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 configuration alerting: 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=2. prometheus 软加载配置文件
kill -hup pid3.prometheus 校验配置文件
[root@zabbix-proxy prometheus]# /usr/local/prometheus/promtool check config /usr/local/prometheus/prometheus.yml Checking /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.同一类项目
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
文章题目:prometheus02-file_sd_configs-创新互联
本文链接:http://ybzwz.com/article/jipgd.html