SLV Pasang Prometheus
SLV Pasang Prometheus

Mengapa Prometheus?
Prometheus adalah standar de facto untuk monitor deret waktu, mengumpulkan metrik dengan bahasa kueri yang kuat (PromQL) dan sebuah ekosistem kaya dari eksportir. Memasangnya melalui
slv install Memberikan Anda sebuah metrik tulang punggung konsisten yang feed Grafana Dashboard dan peringatan aturan di setiap lingkungan.-
- Highlights * *
- Prometheus: https://prometheus.io/
- Pull-based scraping menjaga keselarasan yang dapat diprediksi sementara PromQL muncul di permukaan yang dapat ditindaklanjuti.
- Integrasi asli dengan Grafana dan Alertmanager sehingga Anda dapat memvisualisasikan dan memberitahu tanpa tambahan setup.
Jalankan Pemasang
Target host yang seharusnya berjalan Prometheus dan memilih dari pemilih komponen.
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 ClusterCatatan: Ganti1.1.1.1dengan IP alamat server Anda sendiri.
Tinjau Rincian
Konfirmasikan inventaris, jalur pedoman, dan batas opsional sebelum playbook kicks off.
bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › Prometheus
✅ You selected: Prometheus
📋 Installation Details:
Software: Prometheus
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
? Do you want to proceed with the installation? (y/N) ›🚀 Installing software components...
? Select Software Component to Install (Redis) › Prometheus
✅ You selected: Prometheus
📋 Installation Details:
Software: Prometheus
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
? Do you want to proceed with the installation? (y/N) ›Amati Ansible
slv Manfaat Ansibel untuk diinstal Prometheus sebagai layanan sistemd dan drop dalam konfigurasi baseline.bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-prometheus.yml
PLAY [Install and configure Prometheus] **************************************************************
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-prometheus.yml
PLAY [Install and configure Prometheus] **************************************************************
TASK [Gathering Facts] *******************************************************************************Verifikasi Endpoint
Setelah selesai, CLI mencetak Prometheus web UI URL sehingga Anda dapat mengkonfirmasi target yang menggores dengan benar.
bash
✅ Installation completed successfully!
🌐 Access Information:
Prometheus URL: http://1.1.1.1:3090✅ Installation completed successfully!
🌐 Access Information:
Prometheus URL: http://1.1.1.1:3090Dashboard
Buka
http://1.1.1.1:3090 untuk memverifikasi Prometheus target halaman. Pejamkan dengan Grafana untuk metrik grafik menggunakan PremQL dan mengatur aturan waspada melalui Alertmanager.