I am setting up a logs grafana dashboard, and I would like to dynamically load the files that are generated in the logs directory into the dashboard selection variable via loki datasource.
I can load, but only log files that undergo modification are loaded.
After 1 day no longer appear.
26/11
27/11
Know that api loki/api/v1/label/filename has the parameters
start end
Consulting the api, I have the expected results
How can I pass these parameters in the query label_values(filename)?
I've tried label_values({start: 1603506254000000000, end: 1607506254000000000}, filename), but it didn't work.
Would I have a way to spend an initial and final period, so that I could see all the files for the current month?
UPDATE:
I forwarded the question to github grafana / loki and it looks like an implementation that will be done in the future. https://github.com/grafana/loki/issues/3011





