# Integration with Prometheus Consul v.1.10.1

**URL:** <https://discuss.hashicorp.com/t/integration-with-prometheus-consul-v-1-10-1/28131>\
**Category:** Consul\
**Created:** [August 12, 2021, 10:35am UTC](https://discuss.hashicorp.com/t/integration-with-prometheus-consul-v-1-10-1/28131 "2021-08-12T10:35:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IvanNazarenko](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ivannazarenko/32/21522_2.png) [@IvanNazarenko](https://discuss.hashicorp.com/u/IvanNazarenko)\
**Post date:** [August 12, 2021, 10:35am UTC](https://discuss.hashicorp.com/t/integration-with-prometheus-consul-v-1-10-1/28131/1 "2021-08-12T10:35:09Z")

</div>

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 ?  
 ![image](https://global.discourse-cdn.com/hashicorp/original/3X/a/2/a230036eba8de4b57c3476ed48086836442dcde5.png)  
Config of prometheus:

```auto
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

```
