Hello everyone,
I have some problems with geting targets for collecting metrics form my microservices which writed by java. I using docker swarm like orchestrator, all my services registration on consul afther that i using prometheus for collect metrics. But afther update i can’t get list of targets. Before i using Consul v.1.9.4, all were work. Logs of prometheus don’t get any messages about error. Maybe afther update Consul have some changes in API ?
Config of prometheus:
scrape_configs:
- job_name: my_stack
scrape_interval: 10s
metrics_path: /actuator/prometheus
consul_sd_configs:
- server: 'consul-mng:8500'
datacenter: develop
relabel_configs:
# Get all services from consul and set like jobs
- source_labels: [__meta_consul_service]
target_label: job