iT邦幫忙

0

[Grafana進階應用] 如何微觀毫秒趨勢圖Displaying with milliseconds interval in Graph

GRAFANA版本:V6.4.4
MariaDB版:10.4

沒想到我的人生,走到了毫秒必爭的階段!

使用Grafana大約一年的時間,十分喜愛這套美觀大方的軟件,那日突然需要觀察五秒內作動的設備電壓電流變化,感測器每秒大約有100筆資料的產出,怎麼調整Grafana參數都只能顯示一秒間格的解析度,爬遍中外討論區仍無答案。

後來,靈機一動,找到了解決方法,在這裡分享給大家。

一.選擇DATASOURCE。
https://ithelp.ithome.com.tw/upload/images/20200320/20125736pa1H6poth3.png

二.變更為編輯模式(1),並產生SQL程式碼(2)。
https://ithelp.ithome.com.tw/upload/images/20200320/20125736vUiEYFWHIF.png

三.複製SQL程式碼,並貼至編輯區。
https://ithelp.ithome.com.tw/upload/images/20200320/20125736U4GrsW2Hk9.png

四.修改DIV為0.01 * 0.01
https://ithelp.ithome.com.tw/upload/images/20200320/20125736DToIhIhBBV.png

五.調整Draw Modes的Points為開啟
https://ithelp.ithome.com.tw/upload/images/20200320/20125736ussT71BV3d.png

大功告成,是不是很容易?

另外,DATABASE必須設定為能夠儲存毫秒的欄位,請參考以下設定。

https://ithelp.ithome.com.tw/upload/images/20200320/20125736AUvX4WyD61.png

https://ithelp.ithome.com.tw/upload/images/20200320/20125736uEjKq7532x.png

若喜歡本文章,請給予鼓勵鼓勵!


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言