# EPower Grafana # 1. 登入儀表板 先到[https://127.0.0.1](https://%28/):1111 找到左邊選單➝客製化➝統一儀表板➝設定➝啟用它就完成sever服務了 [![Selection_012.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/ELhselection-012.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/ELhselection-012.png) 點選它進入後台 [![Selection_013.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/cZUselection-013.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/cZUselection-013.png) 帳號:admin 密碼:Epower123 [![Selection_011.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/5KDselection-011.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/5KDselection-011.png)# 2. 整合 Ceph 數據 [![Selection_014.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-014.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-014.png)# 3. 使用 Telegram 發出警告通知 #### 創建 Telegram BOT 先到[Telegram 官網](https://desktop.telegram.org/)下載主程式,下載完之後便可以打開之後到上方橫條搜尋@BotFather進入聊天室並點擊star 然後在聊天室輸入/new bot 它會叫你創一個你想叫他的名子(純粹顯示出來方便管理) 輸入完之後它會再請你創一個含有bot的名子(類似帳號的名子,且不可重複) [![Epower NMS2-1.jpg](http://km.sopdom.com/uploads/images/gallery/2021-10/scaled-1680-/epower-nms2-1.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-10/epower-nms2-1.jpg) #### 若是你的聊天紀錄遺失沒關係 到@botfather聊天室 輸入/token 選擇要查詢的機器人,它就會給你了 #### [![Epower NMS2-3.jpg](http://km.sopdom.com/uploads/images/gallery/2021-10/scaled-1680-/LdYepower-nms2-3.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-10/LdYepower-nms2-3.jpg) #### #### 找出剛剛創立Bot的chat id 當我們找到bot並且發出了訊息也有綠色勾勾代表傳輸出去 [![Epower NMS2-2.jpg](http://km.sopdom.com/uploads/images/gallery/2021-10/scaled-1680-/4huepower-nms2-2.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-10/4huepower-nms2-2.jpg) 最後一步就是到[查詢chat ID](https://api.telegram.org/bot+%E4%BD%A0%E7%9A%84token/getUpdates)並把網址內的+token變成你跟botfather申請的token那組隨機文字 Cirl+F 可以搜尋"chat"它後面的數字便是你的chat id [![Epower NMS2-4.jpg](http://km.sopdom.com/uploads/images/gallery/2021-10/scaled-1680-/y69epower-nms2-4.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-10/y69epower-nms2-4.jpg) 若是出現:{"ok":true,"result":\[\]} 則在Telegram對著創立的bot聊天室再輸入一次任意文字並重新整理即可 Alerting➝New channel [![Selection_015.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-015.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-015.png) 輸入你的名子 類型選Telegram chat id 就是剛剛你所查出來的id token 就是你所申請的 token 碼 [![Selection_016.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-016.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-016.png) 設定完警告設備後 到儀表板選擇要發警告數據裡面 [![Selection_014.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-014.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-014.png) 下方找到Alert新增警報 [![Selection_020.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-020.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-020.png) [![Selection_021.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-021.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-021.png) 設定完成後Test rule測試看看有沒有錯誤沒有即成功 [![Selection_022.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-022.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-022.png) 此時如有異常集會發送警告 [![3645523.jpg](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/3645523.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-12/3645523.jpg)# 4. 使用 Line發出警告通知 類型選擇Line [https://notify-bot.line.me/zh\_TW/](https://notify-bot.line.me/zh_TW/) 進入後登入line [![Selection_024.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-024.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-024.png) 個人頁面➝發行權杖 [![Selection_017.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-017.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-017.png) 選擇群組 [![Selection_018.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/oy1selection-018.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/oy1selection-018.png) 選好群組按發行➝複製➝回到Alerting填寫Line Token➝Save [![Selection_019.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/Q5kselection-019.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/Q5kselection-019.png) [![Selection_023.png](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/selection-023.png)](http://km.sopdom.com/uploads/images/gallery/2021-12/selection-023.png) Save完後到賴的群組內邀請Line Notify進入群組集會發送警告 [![3645526.jpg](http://km.sopdom.com/uploads/images/gallery/2021-12/scaled-1680-/19R3645526.jpg)](http://km.sopdom.com/uploads/images/gallery/2021-12/19R3645526.jpg)