Hi,
I’m displaying some influxdb series in a grafana graphics.
I’m using some web requests like this one:
http://localip:3000/d/JUca-hZRk/fotovoltaika?orgId=1&from=1583387811044&to=1583409411044
This displays some absolute time interval. But I need to have some web request link for “Today so far” interval. How can be this done to display only last data from actual relative time interval ?
http://localip:3000/d/JUca-hZRk/fotovoltaika?orgId=1&todaysofar
Thanks for help.
Hello,
If you append /d
you’ll select start of day for from
values and end of day for end
values.
For your example that would result in:
http://localip:3000/d/JUca-hZRk/fotovoltaika?orgId=1&from=now/d&to=now
If you run in the browser and then select the range you are interested in (Today so far for example) you will see the URL it uses to display that range. It is ?orgId=1&refresh=10s&from=now%2Fd&to=now
for that example. Substitute an appropriate value for the refresh, if you want it to refresh.
2 Likes
Thank you very much it works with:
orgId=1&refresh=10s&from=now%2Fd&to=now
also with:
orgId=1&refresh=10s&from=now/d&to=now