SLV Install - Prometheus
SLV Install - Prometheus

Neden Prometheus?
Prometheus, güçlü bir sorgu dili (PromQL) ve zengin bir exporter ekosistemiyle metrik toplayan, zaman serisi izleme için fiili standarttır.
slv install ile kurmak, her ortamda Grafana dashboard'larını ve uyarı kurallarını besleyen tutarlı bir metrik omurgası sağlar.Öne Çıkanlar
- Prometheus: https://prometheus.io/
- Pull tabanlı scraping gözlemlenebilirlik trafiğini öngörülebilir tutarken PromQL, üzerinde işlem yapılabilir içgörüleri ortaya çıkarır.
- Grafana ve Alertmanager ile yerleşik entegrasyon sayesinde ek kurulum olmadan görselleştirme ve bildirim yapabilirsiniz.
Kurulum Aracını Çalıştırma
Prometheus'u çalıştıracak host'u hedefleyin ve bileşen seçiciden Prometheus'u seçin.
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 ClusterNot:1.1.1.1yerine kendi sunucunuzun IP adresini yazın.
Ayrıntıları Gözden Geçirme
Playbook başlamadan önce envanteri, playbook yolunu ve isteğe bağlı limiti doğrulayın.
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) › Ansible Çalışmasını İzleme
slv, Prometheus'u bir systemd servisi olarak kurmak ve temel yapılandırmayı yerleştirmek için Ansible'ı kullanır.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] *******************************************************************************Uç Noktayı Doğrulama
İşlem bittiğinde CLI, Prometheus web UI URL'sini yazdırır; böylece target'ların doğru şekilde scrape edildiğini doğrulayabilirsiniz.
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
Prometheus targets sayfasını doğrulamak için
http://1.1.1.1:3090 adresini açın. PromQL ile metrikleri grafiğe dökmek için Grafana ile birlikte kullanın ve Alertmanager üzerinden alarm kuralları oluşturun.