首页 > 其他 > 详细

federate - Prometheus outside k8s cluster

时间:2019-09-27 14:11:31      阅读:138      评论:0      收藏:0      [点我收藏+]

1.实验的架构

 

技术分享图片

 

 2.k8s 集群外的Prometheus的配置文件

[root@do1cloud03 prometheus]# cat prometheus.yml |egrep -v #
global:

alerting:
  alertmanagers:
  - static_configs:
    - targets:

rule_files:

scrape_configs:



  - job_name: federate
    scrape_interval: 15s
    honor_labels: true
    metrics_path: /federate
    params:
      match[]:
         - {job=~".+"}
    static_configs:
      - targets:
        - 192.168.1.45:30090

 参考:https://yq.aliyun.com/articles/679645/

federate - Prometheus outside k8s cluster

原文:https://www.cnblogs.com/hixiaowei/p/11597496.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!