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