【監控】Grafana面板修改記錄

  • 修改主機圖板
    update dashboard set data = replace(data,'$host','$ip')
    update dashboard set data = replace(data,'instance','ip')
  • 修改MySQL圖板
    update dashboard set data = replace(data,'instance="$host"','ip="$ip",port="$port"')   where slug like 'mysql%' and plugin_id='pmm-app';

replace函數: http://www.mysqltutorial.org/mysql-string-replace-function.aspx

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章