SLV Install - Grafana
SLV Install - Grafana

Tại sao nên dùng Grafana?
Grafana tập trung các metric, log và trace vào các dashboard phong phú, giúp người vận hành nắm bắt tình trạng hạ tầng chỉ trong nháy mắt. Triển khai Grafana với
slv install mang đến cho mọi môi trường cùng một bộ công cụ giám sát mà không cần cấu hình thủ công.Điểm nổi bật
- Grafana: https://grafana.com/
- Xây dựng các dashboard và cảnh báo tái sử dụng được, giúp phát hiện ngay lập tức các vấn đề hiệu suất của validator hoặc RPC.
- Kết nối với Prometheus, Loki, MySQL và hàng chục nguồn dữ liệu khác ngay từ đầu.
Chạy trình cài đặt
Trỏ
slv install đến host sẽ chạy Grafana và chọn nó từ danh sách thành phần.bash
$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
TiDB (MySQL Cluster)
❯ Grafana
Prometheus
Node Exporter
Kafka Cluster$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
TiDB (MySQL Cluster)
❯ Grafana
Prometheus
Node Exporter
Kafka ClusterLưu ý: Thay1.1.1.1bằng địa chỉ IP máy chủ của bạn.
Xem lại chi tiết
Xác nhận inventory và đường dẫn playbook trước khi khởi chạy Ansible. Hủy tại đây nếu host đích hoặc cấu hình không chính xác.
bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › Grafana
✅ You selected: Grafana
📋 Installation Details:
Software: Grafana
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-grafana.yml
? Do you want to proceed with the installation? (y/N) ›🚀 Installing software components...
? Select Software Component to Install (Redis) › Grafana
✅ You selected: Grafana
📋 Installation Details:
Software: Grafana
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-grafana.yml
? Do you want to proceed with the installation? (y/N) ›Theo dõi quá trình thực thi Ansible
Sau khi xác nhận,
slv chạy playbook Grafana và cấu hình dịch vụ dưới dạng daemon Linux gốc.bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-grafana.yml
PLAY [Install and configure Grafana] ****************************************************************
TASK [Gathering Facts] *******************************************************************************🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-grafana.yml
PLAY [Install and configure Grafana] ****************************************************************
TASK [Gathering Facts] *******************************************************************************Xác minh endpoint
Cài đặt thành công sẽ kết thúc với URL đăng nhập Grafana và thông tin đăng nhập mặc định để bạn có thể truy cập ngay lập tức.
bash
✅ Installation completed successfully!
🌐 Access Information:
Grafana URL: http://1.1.1.1:3000/login
🔑 Default credentials
Username: admin
Password: admin✅ Installation completed successfully!
🌐 Access Information:
Grafana URL: http://1.1.1.1:3000/login
🔑 Default credentials
Username: admin
Password: adminDashboard
Đăng nhập tại
http://1.1.1.1:3000/login và import các dashboard của bạn hoặc kết nối Prometheus làm nguồn dữ liệu. Hãy cân nhắc chụp ảnh màn hình dashboard chính sau khi cấu hình cho tài liệu nội bộ.