SLV Install - Prometheus
SLV Install - Prometheus

Waarom Prometheus?
Prometheus is in de praktijk de standaard voor het monitoren van tijdreeksen: het verzamelt metrics met een krachtige querytaal (PromQL) en heeft een rijk ecosysteem van exporters. Installeer je het via
slv install, dan krijg je in elke omgeving een consistente basis voor metrics die Grafana-dashboards en alertregels voedt.In het kort
- Prometheus: https://prometheus.io/
- Scraping op basis van pull houdt het observability-verkeer voorspelbaar, terwijl PromQL bruikbare inzichten zichtbaar maakt.
- Native integratie met Grafana en Alertmanager, zodat je zonder extra configuratie kunt visualiseren en meldingen kunt versturen.
Start de installer
Geef de host op waarop Prometheus moet draaien en kies Prometheus in de componentkiezer.
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 ClusterOpmerking: vervang1.1.1.1door het IP-adres van je eigen server.
Bekijk de details
Controleer de inventory, het playbook-pad en de optionele limiet voordat het playbook start.
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) › Volg de uitvoering door Ansible
slv gebruikt Ansible om Prometheus als systemd-service te installeren en de basisconfiguratie te plaatsen.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] *******************************************************************************Controleer het endpoint
Na afloop toont de CLI de URL van de Prometheus-webinterface, zodat je kunt controleren of de targets correct worden gescrapet.
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
Open
http://1.1.1.1:3090 om de targets-pagina van Prometheus te controleren. Combineer Prometheus met Grafana om metrics met PromQL in grafieken te zetten, en stel alertregels in via Alertmanager.