Prometheus

Prometheus: Advanced Monitoring for Your IT Infrastructure

Do you want a clear overview of how your servers, databases, and applications are performing? Meet Prometheus—a powerful monitoring tool designed for DevOps engineers and system administrators. Whether you're using Linux or Windows Server, Prometheus efficiently collects metrics via HTTP requests. With flexible configurations, alerting systems, and seamless integration with Grafana, Prometheus has become one of the most sought-after solutions for monitoring complex systems.

Why Use Prometheus?

  • Comprehensive Metric Collection
  • Collects data from servers, databases, applications, and microservices. Works with standard protocols and formats (including network and server monitoring).
  • Powerful Query Language (PromQL)
  • Enables in-depth analysis of collected metrics. Allows you to create custom reports and KPIs.
  • Automated Alerting (via Alertmanager)
  • Sends real-time alerts about critical events, helping teams react to failures instantly.
  • Seamless Grafana Integration
  • Visualize metrics in dashboards and interactive graphs. Simplifies analysis and improves infrastructure monitoring.
  • Quick Deployment
  • Available as a pre-configured image in Marketplace for both Linux and Windows Server.

How to Deploy Prometheus

Step 1: Install the Prometheus Server

Navigate to Marketplace and start the installation. Once the installation is complete, you will receive access credentials via:

  • Email notification
  • Support ticket in your personal account

With Prometheus, you gain full control over your IT infrastructure—monitor, analyze, and optimize effortlessly!

Step 2: Connecting to the Server

Select an SSH client based on your operating system:

  • Linux/MacOS: Use the built-in terminal.
  • Windows: Use PuTTY or the built-in OpenSSH.

When prompted, enter the password set during installation or use a pre-configured SSH key. Not sure how to generate an SSH key? Refer to the appropriate guide for your system.

After successfully logging in via SSH, you will see a welcome message, confirming your connection. image6

To retrieve your connection credentials at any time, run the following command:

cat /root/.password_credentials

Step 3: Configuring Prometheus

The main system files are located in:

/etc/prometheus/

image2

The main configuration file for Prometheus is:

/etc/prometheus/prometheus.yml

Inside this file, you can define:

  • Metric sources to be monitored.
  • Alerting rules for sending notifications.
  • Additional monitoring settings for fine-tuning Prometheus.

To edit the configuration, use the following command:

vim /etc/prometheus/prometheus.yml

image5

Step 4: Setting Up a Secure Connection (SSL Certificate) Link Your Domain

  • Point your domain or subdomain to the server's IP address.
  • Verify that DNS records are correctly configured in your domain’s admin panel.

Install a Free Let’s Encrypt SSL Certificate

Run the following command in the terminal:

certbot --nginx

This will enable HTTPS and secure your Prometheus instance. image3

Completing SSL Setup

Accept the terms and enter your email address for notifications and recovery. Provide your domain name (e.g., your.domain.com). If you prefer, opt out of email data sharing for analytics. Wait a few minutes for the installation to complete.

Step 5: Accessing the Prometheus Web Interface

Open any browser and navigate to:

https://<Your-IP>

If SSL is not yet configured, your browser may display a security warning. This is normal during the initial setup stage. image1

After Logging into the Web Panel, You Can:

  • View all collected Prometheus metrics in real-time.
  • Use PromQL to create custom queries and analyze data.
  • Integrate external tools and extensions (e.g., Grafana for advanced visualization).

Your Prometheus monitoring system is now up and running! image4

Additional Information & Tips

  • Port 25 Restriction: This port is often blocked by default. To enable it for email delivery, contact your hosting provider’s support team.

  • Optimized Alerts: Configure Alertmanager to ensure you don’t miss critical failures and can respond in time.

  • Graphs & Dashboards: Integrate with Grafana for visually appealing metric groupings and dashboards.

  • Configuration Updates: After making changes to prometheus.yml, restart the service with:

    systemctl restart prometheus

Conclusion

Prometheus is a powerful and scalable monitoring solution that keeps your entire IT infrastructure under control in real-time.

With flexible configurations, seamless integrations, and automated alerts, you can track key metrics and quickly resolve potential issues.

By following this guide, you can deploy and configure Prometheus efficiently—then let it handle the stability and performance of your systems.