Grafana: 5.0.3 (I think, where does one check this?)
Grafana host: Windows 7 Pro, 64 bit
MySQL server: Maria DB 10.2, Debian Jessie 64 bit
I’m building my first dashboard.
I have a data source in MySQL that is a single table of hourly ping test results for my servers covering several years worth of data.
The table structure is simple-
+-------------+-------------------------------
| Field | Type
+-------------+-------------------------------
| id | int(10) unsigned
| source | enum(<list of source hostnames>)
| target | enum('<list of ping targets>)
| packet_size | smallint(4)
| start | datetime
| min | decimal(5,1)
| mean | decimal(5,1)
| max | decimal(5,1)
| %_lost | decimal(5,1)
+-------------+--------------------------------
I set up a single horizontal time series chart for the min / mean / max values (Chart A), with another below (Chart B) for % packet loss. This all works well. If I hover the cursor over a chart I see the specific numeric value at that time. All good so far.
Issue
Over time I have used different ping target addresses, so the numbers aren’t strictly comparable from one time period to another.
I was hoping to simply add the target value as a new “line source” on the chart, then hide the chart line display, but still have the ping target name appear in the hover data popup.
Unfortunately, I assume because the target is a string value not a number, this field is just being ignored.
(Note the generated SQL query is non-aggregated, so there’s no issue with trying to aggregate a string/enum column).
Im wondering if i’m going about this the wrong way. Is there a better way to achieve what i’m aiming for?