openstack_sd_configs: - role: instance region: RegionOne port: 80 refresh_interval: 1m tls_config: ca_file: valid_ca_file cert_file: valid_cert_file key_file: valid_key_file - job_name: service-puppetdb puppetdb_sd_configs: - url:https://puppetserver/query: 'resources { type = "P...
[ - <http_sd_config> ... ] #Kubernetes服务发现配置列表。 kubernetes_sd_configs: [ - <kubernetes_sd_config> ... ] # Lightsail 服务发现配置列表。 lightsail_sd_configs: [ - <lightsail_sd_config> ... ] # Linode 服务发现配置列表。 linode_sd_configs: [ - <linode_sd_config> ... ] ...
<dockerswarm_sd_config> <dns_sd_config> <ec2_sd_config> <openstack_sd_config> <file_sd_config> <gce_sd_config> <hetzner_sd_config> <http_sd_config> <kubernetes_sd_config> <kuma_sd_config> <lightsail_sd_config> <linode_sd_config> <marathon_sd...
azure_sd_configs: 适用于Azure虚拟机。 consul_sd_configs: 适用于通过Consul进行服务发现。 marathon_sd_configs: 适用于Marathon。 nerve_sd_configs: 适用于Airbnb的Nerve。 serverset_sd_configs: 适用于Twitter的ServerSets。 dockerswarm_sd_configs: 适用于Docker Swarm。 openstack_sd_configs: 适用于OpenSta...
<azure_sd_config><consul_sd_config><digitalocean_sd_config><docker_sd_config><dockerswarm_sd_config><dns_sd_config><ec2_sd_config><openstack_sd_config><file_sd_config><gce_sd_config><hetzner_sd_config><http_sd_config><kubernetes_sd_config><kuma_sd_config><lightsail_sd_config><linode_...
<dockerswarm_sd_config> <dns_sd_config> <ec2_sd_config> <openstack_sd_config> <file_sd_config> <gce_sd_config> <hetzner_sd_config> <http_sd_config> <kubernetes_sd_config> <kuma_sd_config> <lightsail_sd_config> <linode_sd_config> ...
<azure_sd_config> <consul_sd_config> <digitalocean_sd_config> <docker_sd_config> <dockerswarm_sd_config> <dns_sd_config> <ec2_sd_config> <openstack_sd_config> <file_sd_config> <gce_sd_config> <hetzner_sd_config> <http_sd_config> ...
因为Prometheus没有专门针对swarm的服务发现组件,需要手动向file_sd_configs对应的文件中追加,Prometheus官方上有一个方案,具体可参考prometheus-swarm-discovery 启动prometheus $cd/opt/k8s/prometheus/prom$docker stack deploy -c prome-stack.yml prom 部署node-exporter ...
consul_sd_configs: # 服务发现配置 [ - <consul_sd_config> ... ] # List of DigitalOcean service discovery configurations. digitalocean_sd_configs: [ - <digitalocean_sd_config> ... ] # List of Docker Swarm service discovery configurations. ...
*<scrape_config>*<tls_config>*<azure_sd_config>*<consul_sd_config>*<digitalocean_sd_config>*<dockerswarm_sd_config>*<dns_sd_config>*<ec2_sd_config>*<openstack_sd_config>*<file_sd_config>*<gce_sd_config>*<hetzner_sd_config>*<kubernetes_sd_config>*<marathon_sd_config>*<nerve_sd_co...