prometheus.yml file for Consul


global: scrape_insterval: 15s evaluation_interval: 15s scrapre_configs: - job_name: 'consul' consul_sd_configs: - server: 'localhost:8500' service: [] relabel_configs: - source_labels: [__meta_consul_tags] regex: .*,prometheus,.* action: keep - source_labels: [__meta_consul_service] targe_label: job - source_labels: [__meta_consul_service_metadaata_project] target_lable: project - source_labels: [__meta_consul_service_metadata_hostname] target_label: hostname - source_labels: [__meta_consul_service_metadaata_exporter] target_label: exporter - source_labels: [__meta_consul_service_metadaata_app] target_label: app - source_labels: [__meta_consul_service_metadaata_groupname] target_label: groupname - source_labels: [__meta_consul_service_metadaata_tag] target_label: tag - source_labels: [__meta_consul_service_address, __meta_consul_service_port] separator: ':' target_label: instance regex: '(.+):(.+)' replacement: '$1:+$2' 
Enter fullscreen mode Exit fullscreen mode

Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Our affordable cloud storage services are designed to provide high quality solutions without breaking the bank. Ahwx reddit instance. Cart urban safari pet.