![](https://cocoinit23.com/wp-content/uploads/2022/07/grafana.png)
Raspberry pi に温度と湿度を測れるセンサーを繋いでPrometheusに送り、Grafanaで可視化していた。
しかし、温度と湿度を同じグラフに載せると、それぞれの値が取りうる範囲が違うので、意図したスケールにならない。
そこで、温度は左側、湿度は右側になるような設定を探してみた。
![](https://cocoinit23.com/wp-content/uploads/2022/07/hkjvsdciufoyer849.png)
Overridesで対象となるmetricを指定し、Axis > PlacementのRightを選べばOK。
これでスケールの違う項目を同じグラフに表示して見やすくなった。
参考
![](https://global.discourse-cdn.com/grafana/original/2X/a/a7f38198d3aa26d70bae13c3379e5b93a010e7d7.png)
Grafana8.1: how to show two lines in one panel and use both left/right y axis?
I can show two lines on one panel; and now I want to set the first line to use left y axis, the second line to use right...
コメント