Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server

Guide

How to Install Prometheus and Grafana on Ubuntu

Prometheus scrapes metrics; Grafana graphs them. On a lab VPS you can install both from apt or official packages.

Steps

  1. Fast path with Ubuntu packages (distro versions):

    sudo apt update
    sudo apt install -y prometheus prometheus-node-exporter grafana
  2. Start the services:

    sudo systemctl enable --now prometheus prometheus-node-exporter grafana-server
    sudo systemctl status prometheus grafana-server --no-pager
  3. Open Grafana in the browser (port 3000) and add Prometheus as a datasource (typical URL http://127.0.0.1:9090).

    ss -lntp | grep -E '9090|3000|9100'
  4. Lock access with a firewall or SSH tunnel — do not expose 3000/9090 to the internet without auth.

    ssh -L 3000:127.0.0.1:3000 user@VPS_IP

Tips

  • Change the Grafana admin password on first login.
  • For newer builds, use the official Prometheus/Grafana repos instead of an old distro package.

ext step

VPS with RAM for time series: Deploy your Cloud VPS.

Related guides