Okay, so I’m using the state timeline plugin to display when my different heat pumps start and stop. I made some value mappings for the values that represent these different states. (60=running, 100=stopping, 20=stopped) But the value mappings don’t show up anywhere, I just get the numbers. I have learned now what the numbers mean, but how can I get the value mappings to show in the graph? Surely there must be a reason for the value mapping function to be included in the State timeline graph, or why would it be there?
You can see my value mappings here to the right, and that in the graph only the actual data values are shown, not the mappings. Is this a bug or is it me?
I noticed in your screenshot that it says 20+, 60+, etc. What is the “+” for? Maybe that has something to do with your value mappings not working correctly?
FWIW, here is my state timeline with value mappings working fine (I use boolean, not discrete values).
Yep! It works now, thanx! It seems If you use threshold values these numeric values will be displayed in the graph as 60+ for example, meaning “above 60” and override any value text mappings you’ve made.
I removed my threshold values completely and set the color scheme to be “single color” instead of derived from threshold values, and I then set the color in the Value mappings like you and Voila!
I read all the above replies, I am also using state timeline to show service status either active or dead. I have removed all thredshold values and selected single colour scheme. In case, I am not able to combine the active and dead status on single line, when service is dead active line is also showing side by side.
I am not sure if this is related to my flux query. I am using below flux query to read the stats. Thanks in advance.
In you screenshot, it looks like eachrow is for a different host? something.com on the first row, and …y.com on the second row? Are there more than these hosts? If you were to filter to just one host (if that is indeed what is on a given row), then does it display red/green status OK?
Thanks @grant2 for the response. Actually both lines are for same host only, for compliance purpose I have not taken full screenshot. Graph is showing me green for 0(UP) value and red for 2(Down) status. But I am not able to put both color status in single line. I tried lot with different options, not sure what’s the mistake.
In below data from influxdb data explorer, we can see that there is no value 0, when service was down, value is 2(dead) on next page. But in graph i can’t merge them in same line.
Can you run your query below in Influx Data Explorer and post the a snapshot of the output (in table form)? Specifically, I need to see all the columns and a few rows (some with 0 and some with 2).
Thanks @grant2. Finally it worked for me. I have used group function but I needed it to use with host parameter, as I wanted to group the values by host. Thanks for your suggestions. Below screeshot shows status for 3 nodes, where I have tested up and down for first node, which is now showing correctly.