I have composite counters for latency in the form "latency=1.0/3.0/5.0ms" which are min/avg/max respectively.
I would like to be able to graph these individually, something like the graph below.
I think I should be able to remove the units ("ms") and break these up at search time into components (perhaps: latency.min, latency.avg, latency.max) using a regex. I was hoping someone would be kind enough to show me how this can be done, or perhaps something similar.
asked 27 Apr '12, 14:43
OK, now I got it to work. Thanks yannK. When viewing your underlying answer, I see all the backslashes needed. (I was only using the backslash before the slashes)
Just to make other readers life easier (you can cut and paste the code below):
To build the graph try this:
if your event has "latency=1.0/3.0/5.0ms"
display as line graph
edit, beware the web messed up the display, between the counteers, use an escaping backslash before the slash.