# Expected label name, got "INVALID"

**URL:** <https://discuss.prometheus.io/t/expected-label-name-got-invalid/1170>\
**Category:** Prometheus server\
**Created:** [August 31, 2022, 4:03pm UTC](https://discuss.prometheus.io/t/expected-label-name-got-invalid/1170 "2022-08-31T16:03:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuck6](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/chuck6/32/507_2.png) [@chuck6](https://discuss.prometheus.io/u/chuck6)\
**Post date:** [August 31, 2022, 4:03pm UTC](https://discuss.prometheus.io/t/expected-label-name-got-invalid/1170/1 "2022-08-31T16:03:45Z")

</div>

i have deployed a prometheus server A to federate from another prometheus server B.  
config file like below:

- job\_name: ‘get\_cadvisor’  
scrape\_interval: 300s  
scrape\_timeout: 300s  
honor\_labels: true  
metrics\_path: ‘/federate’  
params:  
‘match’:  
- ‘{job=“cadvisor”}’  
static\_configs:
  - targets:
    - ‘x.x.x.x:xxxx’

but i found the error – “expected label name, got “INVALID”” in the prometheus targets . how can i slove the problems ？

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/5ed837fd95a7cfe6f1c7b125be72f0ab83f9c373.png)

---

<div class="post-metadata">

**Author:** ![chuck6](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/chuck6/32/507_2.png) [@chuck6](https://discuss.prometheus.io/u/chuck6)\
**Post date:** [September 1, 2022, 1:09am UTC](https://discuss.prometheus.io/t/expected-label-name-got-invalid/1170/2 "2022-09-01T01:09:10Z")

</div>

the config file just like this:  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/d96b0b920c0697a441902c7cb1ac0551a7088329.png)
