# Consul discovery of specific node

**URL:** https://discuss.prometheus.io/t/consul-discovery-of-specific-node/973
**Category:** Scaling / Clustering / Long-Term Storage
**Created:** [May 11, 2022, 10:49am UTC](https://discuss.prometheus.io/t/consul-discovery-of-specific-node/973 "2022-05-11T10:49:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LukoJy](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/lukojy/32/430_2.png) [@LukoJy](https://discuss.prometheus.io/u/LukoJy)
#### Post date: [May 11, 2022, 10:49am UTC](https://discuss.prometheus.io/t/consul-discovery-of-specific-node/973/1 "2022-05-11T10:49:09Z")

</div>

Hello, awesome prom people 👋

I started testing the Prometheus agent and would like to use consul to discover that specific host `metric_path` and other data. However, I am having trouble filtering it out properly. My `consul_sd_configs:`

```auto
    - server: "<consul_server>"
      token: "<token>"
      tags:
        - exporter
      allow_stale: false
      refresh_interval: 5m
  relabel_configs:
    - source_labels:
      - __meta_consul_service
      target_label: job
    - source_labels:
      - __meta_consul_node
      target_label: instance
.....

```

The thing is that ` __meta_consul_node` can not be used like `__ meta_consul_metadata_<key>` and as I do not have hostname or fqdn (which I need) in metadata, so `node_meta` is a no go here (?), my question - is it possible to somehow use `__meta_consul_node` to filter out that specific node?

---

<div class="post-metadata">

### Author: ![LukoJy](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/lukojy/32/430_2.png) [@LukoJy](https://discuss.prometheus.io/u/LukoJy)
#### Post date: [May 11, 2022, 2:25pm UTC](https://discuss.prometheus.io/t/consul-discovery-of-specific-node/973/2 "2022-05-11T14:25:40Z")

</div>

I ended up adding fqdn to consul metadata ✅
