# Can't able to query label from APM dashboard

**URL:** <https://discuss.elastic.co/t/cant-able-to-query-label-from-apm-dashboard/217148>\
**Category:** APM\
**Tags:** ruby\
**Created:** [January 30, 2020, 9:56am UTC](https://discuss.elastic.co/t/cant-able-to-query-label-from-apm-dashboard/217148 "2020-01-30T09:56:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudarshan013](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sudarshan013](https://discuss.elastic.co/u/Sudarshan013)\
**Post date:** [January 30, 2020, 9:56am UTC](https://discuss.elastic.co/t/cant-able-to-query-label-from-apm-dashboard/217148/1 "2020-01-30T09:56:27Z")

</div>

**Kibana version** : 6.8.0  
**Elasticsearch version** : 6.8.0  
**APM Server version** : 6.8.0  
**APM Agent language and version** : Ruby  
**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: From source

Hello Team,  
I have created the two custom labels in my posts\_controller in my rails Application  
ElasticAPM.set\_label(:clientid,'1')  
ElasticAPM.set\_label(:controller\_info, params['controller'])

I can only query the clientid and not controller\_info :  
Here is the screenshot of the above mentioned issue  
**Can able to query the context.tags.clientid**

 ![doubt2](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dca9b4ff36449b8e731748a108752570a7355587.png)  
**Can't able to query the context.tags.controller\_info**  
 ![doubt3.png](https://us1.discourse-cdn.com/elastic/original/3X/6/2/6253087cd9db240e1036a2faf86996ca99016755.png)

But both the tags are available in the tags section

 ![doubt3](https://us1.discourse-cdn.com/elastic/original/3X/b/f/bf119c8343a245bacd880ae7574bdaefdab7ff8b.png)

Also, I thought of digging into Discover to figure out the issue

![diubt](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b68479d0f6da860d2fda42286d909218c9b63c9.png)

I figured out that **?** sign near the controller\_info, while itsnt present before the clientid..

How to work arround this and start working..

Thanks in advance ..

---

<div class="post-metadata">

**Author:** ![caue.marcondes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/caue.marcondes/32/61739_2.png) [@caue.marcondes](https://discuss.elastic.co/u/caue.marcondes)\
**Post date:** [January 30, 2020, 12:46pm UTC](https://discuss.elastic.co/t/cant-able-to-query-label-from-apm-dashboard/217148/2 "2020-01-30T12:46:34Z")

</div>

> [@Sudarshan013](#):
>
> set\_label

Hi Sudarshan013,

Can you please check what is the type returned by `params['controller'])`?

As in the [documentation](https://www.elastic.co/guide/en/apm/agent/ruby/3.x/api.html#api-agent-set-label), it says the value can be `string, nil, numeric or boolean`.

---

<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:** [February 20, 2020, 8:46am UTC](https://discuss.elastic.co/t/cant-able-to-query-label-from-apm-dashboard/217148/3 "2020-02-20T08:46:44Z")

</div>

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