Couple of tiny fixes for the JSON to YAML converter regarding gauges.
When the orientation from a gauge could not be determined, we tried to log a warning message, except that we logged the value from the StatPanel not the GaugePanel which is nil, causing a panic
auto is a value that might be returned from grafana. So instead of logging a warning, this PR makes the converter handles the auto value instead explicitely.
What does this PR do?
Couple of tiny fixes for the JSON to YAML converter regarding gauges.
StatPanel
not theGaugePanel
which is nil, causing a panicauto
is a value that might be returned from grafana. So instead of logging a warning, this PR makes the converter handles theauto
value instead explicitely.Hope this helps :)