Installing Prometheus Agent on a Public Cloud instance
Objective
Prometheus is a monitoring system and time series database. You can install and use its agent on OVHcloud Public Cloud instances to gather metrics from your servers and applications.
Find out how to install the Prometheus Node Exporter or Windows Exporter agent on an OVHcloud Public Cloud instance.
OVHcloud provides services for which you are responsible with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend contacting a specialist service provider or reaching out to our community if you experience any issues.
Requirements
- An instance created via the OVHcloud Control Panel
- Administrative access to the instance
- A Prometheus server running and reachable from the instance
Instructions
Follow these steps to install the Prometheus Node Exporter or Windows Exporter agent on your OVHcloud Public Cloud instance to collect metrics.
Step 1: Connecting to your instance
Connect to your instance via SSH:
Replace <INSTANCE_IP> with the public IP address of your instance.
On Windows, use PowerShell with SSH or an SSH client such as PuTTY if you prefer using a command-line interface.
For Windows Server with GUI, you can also use RDP (Remote Desktop).
Step 2: Updating your system
Make sure your system packages are up to date:
No system update is required specifically for Windows Exporter. Optionally, ensure your system is up to date via Windows Update.
Step 3: Creating a Prometheus user (Optional)
Creating a dedicated user for Node Exporter improves security on Linux, but is optional for Windows Exporter on Windows.
- This creates a user with limited permissions to run Node Exporter.
- Recommended for production to reduce security risks.
- You can then start Node Exporter under this user via systemd.
Note: Run these PowerShell commands inside the VM via SSH.
Note: Windows Exporter can run under the current user. Creating a dedicated user is optional for stricter access control.
Step 4: Downloading Node Exporter / Windows Exporter
Invoke-WebRequest requires PowerShell 3.0 or later.
Everything is done directly inside the VM, no need to transfer files from your local machine.
Step 5: Running Node Exporter / Windows Exporter
- Optional: set up a systemd service to run Node Exporter automatically.
- If using the dedicated prometheus user, ensure the service runs under this account.
- On Desktop or Core, you can run it directly in PowerShell or configure it as a Windows service.
It is possible to customize collectors; see the official documentation for the full list.
Step 6: Verifying Node Exporter / Windows Exporter
Node Exporter listens on port 9100 by default.
Windows Exporter listens on port 9182 by default.
Replace with 9100 for Linux or 9182 for Windows.
The command below allows you to monitor metrics such as CPU, memory, disk, and network usage:
On Windows Desktop, you can also open a browser to check. However, via SSH/PowerShell, use curl or Invoke-WebRequest.
Step 7: Firewall/Security rules (OVHcloud)
Ensure that the port used by the exporter is open in both the VM firewall and your OVHcloud Security Group.
Restrict access to only your Prometheus server for security.
Note: If UFW shows Status: inactive, it means the firewall is not enabled on the VM. The port rule is added but not enforced.
Security is mainly handled by your OVHcloud Security Group.
If you want UFW active, first allow SSH to avoid being locked out:
Open port 9182 in Windows Firewall:
You can also verify rules via:
Step 8: Connecting Node Exporter / Windows Exporter to Prometheus
1. Edit Prometheus config on your Prometheus server (prometheus.yml):
2. Reload Prometheus:
3. Node Exporter / Windows Exporter metrics from your OVHcloud instance should now appear in Prometheus.
Go further
Official Node Exporter documentation
Creating and configuring a security group in Horizon
Join our community of users.