Install prometheus under Ubuntu
Install from repository
sudo apt-get install -y prometheus
# optional
sudo apt-get install -y prometheus-node-exporter
sudo apt-get install -y prometheus-alertmanager
sudo apt-get install -y prometheus-pushgateway
Ansible installation
https://github.com/panticz/ansible/tree/master/roles/prometheus
- hosts: localhost
roles:
- prometheus
Login
http://SERVER_IP:9090/
Commands
avg_over_time(node_memory_MemAvailable[5m])/1024/1024
Repositroy