I have a metric that looks like this:
my_metric{index_name="cool_index_2021-10-03"} 1
And of course the date changes every day.
I want to dynamically query this metric for today only, using the label index_name
.
Is it possible to do something like this? (of course this is not working):
my_metric{index_name="cool_index_" + year() + "-" + month() + "-" + day()}