I have a number of stats that export as a duration string, such as:
"uptime": "32m48.4137762s"
or
"averagerequesttime": "67.6394ms"
These don't generate spark lines, nor are their max really valid. How about an additional var type, durationstr, that parses the duration back into an int64 for comparison/sparkline, but still displays with the duration string representation for labeling?
I have a number of stats that export as a duration string, such as:
"uptime": "32m48.4137762s"
or
"averagerequesttime": "67.6394ms"
These don't generate spark lines, nor are their max really valid. How about an additional var type, durationstr, that parses the duration back into an int64 for comparison/sparkline, but still displays with the duration string representation for labeling?