Adding Dynamic Threshold Line in Timelion

(Arunoday Das) #1

Is there a way to create a line that changes level dynamically based on the value of a particular field in an index? Right now I have used .static() function to draw a straight line across my timelion chart but my use case requires that line to be dynamic.

(Marius Dragomir) #2

You can't really change the line for the whole chart based on the value, but you can change it for time intervals, by having a metric line for the field you want to look at, and using fit=nearest will give you a stepped line.
Ex: .es(index="my*", fit=nearest)

(Arunoday Das) #3

Oh Alright.. thanks :slight_smile:

(system) closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.