# How to get kubernetes node label in elasticsearch - metricbeat?

**URL:** <https://discuss.elastic.co/t/how-to-get-kubernetes-node-label-in-elasticsearch-metricbeat/237553>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, metricbeat\
**Created:** [June 18, 2020, 3:01am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-node-label-in-elasticsearch-metricbeat/237553 "2020-06-18T03:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek\_acharya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhishek_acharya/32/70580_2.png) [@abhishek\_acharya](https://discuss.elastic.co/u/abhishek_acharya)\
**Post date:** [June 18, 2020, 3:01am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-node-label-in-elasticsearch-metricbeat/237553/1 "2020-06-18T03:01:20Z")

</div>

Hi there,

I have assigned a label to my node using kubectl command. now i want this metadata information in elasticsearch metricbeat field, but i am unable to get this!

Also I have checked in my monitoring-template.yaml

- add\_kubernetes\_metadata:  
labels.dedot: true  
annotations.dedot: true

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 16, 2020, 5:01am UTC](https://discuss.elastic.co/t/how-to-get-kubernetes-node-label-in-elasticsearch-metricbeat/237553/2 "2020-07-16T05:01:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
