I am using make-series
to create an error dashboard showing events over a given period at a specified interval like so:
make-series dcount(id) default=0 on timestamp from ago(30d) to now() step 8h
This works great, and displays the data as expected. However this specifies an exact date range (30 days ago to now), and I would like to make this use the time range picked by the user on the dashboard (24 hours, 48 hours, etc.).
I know it is possible to get this behavior using summarize
, however summarize
does not easily allow for setting a default value of zero per timestamp bin (as far as I know).
Is it possible to use the make-series
operator without defining a hardcoded date range, and instead use the time range set for a dashboard?