Alerting - Labels with dots in the name doesn't return data

Hello

I need send the label’s value from alerts created with elastic search datasource, but when the label name contains dots, for example: kubernetes.namespace, the label return no_value

Anyone knows if are there any way to solve this?

Thanks
Regards
Daniel Vallejo

1 Like

Hi Daniel,

we had the same problem with the Google Cloud Monitoring Datasource.

The solution was in this post.

I believe in your case it would result in:

{{ index $labels "kubernetes.namespace" }}

Greetings
Julian

2 Likes

Hi Julian,

We have tested the solution and it works!!
Thanks for dedicate your time to help us solve our problem.

Regards,
Daniel Vallejo.