grafana
grafana簡介 Grafana是一款用Go語言開發的開源數據可視化工具,可以做數據監控和數據統計,帶有告警功能。目前使用grafana的公司有很多,如paypal、ebay、intel等。
grafana七大特點
- 可視化:快速和靈活的客戶端圖形具有多種選項。面板插件為許多不同的方式可視化指標和日志。
- 報警:可視化地為最重要的指標定義警報規則。Grafana將持續評估它們,並發送通知。
- 通知:警報更改狀態時,它會發出通知。接收電子郵件通知。
- 動態儀表盤:使用模板變量創建動態和可重用的儀表板,這些模板變量作為下拉菜單出現在儀表板頂部。
- 混合數據源:在同一個圖中混合不同的數據源!可以根據每個查詢指定數據源。這甚至適用於自定義數據源。
注釋:注釋來自不同數據源圖表。將鼠標懸停在事件上可以顯示完整的事件元數據和標記。
過濾器:過濾器允許您動態創建新的鍵/值過濾器,這些過濾器將自動應用於使用該數據源的所有查詢。
[root@localhost ~]# cd /usr/src/ [root@localhost src]# wget https://dl.grafana.com/oss/release/grafana-8.2.0-1.x86_64.rpm --2021-10-08 10:17:41-- https://dl.grafana.com/oss/release/grafana-8.2.0-1.x86_64.rpm 正在解析主機 dl.grafana.com (dl.grafana.com)... 151.101.54.217, 2a04:4e42:6::729 正在連接 dl.grafana.com (dl.grafana.com)|151.101.54.217|:443... 已連接。 已發出 HTTP 請求,正在等待回應... 200 OK 長度:66080608 (63M) [application/x-redhat-package-manager] 正在保存至: “grafana-8.2.0-1.x86_64.rpm” grafana-8.2.0-1.x 100%[=============>] 63.02M 9.48MB/s 用時 9.0s 2021-10-08 10:17:51 (6.97 MB/s) - 已保存 “grafana-8.2.0-1.x86_64.rpm” [66080608/66080608]) [root@localhost src]# yum -y install grafana-8.2.0-1.x86_64.rpm ······ 已安裝: grafana-8.2.0-1.x86_64 完畢! [root@localhost src]# systemctl daemon-reload [root@localhost src]# systemctl start grafana-server [root@localhost src]# systemctl enable grafana-server Synchronizing state of grafana-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install. Executing: /usr/lib/systemd/systemd-sysv-install enable grafana-server Created symlink /etc/systemd/system/multi-user.target.wants/grafana-server.service → /usr/lib/systemd/system/grafana-server.service. [root@localhost src]# ss -antl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 *:3000 *:*






