Prometheus配置文件--prometheus.yml /rule.yaml/alertmanager.yml
基于static_configs进行服务发现[root@k8s-harbor1 prometheus]#vim prometheus.yml # Sample config for Prometheus.global: scrape_interval: 15s #将数据收集间隔时间设置为每15秒一次。默认为每1分钟一次。 evaluation_interval: 15s #规则扫描间隔时间,每15秒评估一次规则。默认为每1分钟一次。 # scrape_timeout is set