Skip to content

Latest commit

 

History

History
126 lines (81 loc) · 3.81 KB

File metadata and controls

126 lines (81 loc) · 3.81 KB

Prometheus & Grafana Setup for MicroAI Application Performance Monitoring

Table of Contents


1. Download and Install Prometheus Server

  1. Visit the official Prometheus download page: https://prometheus.io/download/ and download the package for your operating system.

For Linux:

wget https://github.com/prometheus/prometheus/releases/download/v3.5.0/prometheus-3.5.0.linux-amd64.tar.gz
tar -xvf prometheus-3.5.0.linux-amd64.tar.gz

2. Setup Prometheus Server

All MicroAI APM Agents export Prometheus metrics on port 9100.

  1. Open the prometheus.yml configuration file.
  2. Add a new job under the scrape_configs section with the agent IPs as targets.

Example:

scrape_configs:
  - job_name: "MicroAI-APM"
    static_configs:
      - targets: ["XXX.XXX.XXX.XXX:9100", "XXX.XXX.XXX.XXX:9100"]
  1. Save and close the configuration file.

  2. Ensure the Prometheus binary has execute permissions:

chmod +x prometheus
  1. Start Prometheus:
./prometheus

3. Verify Prometheus and Agent Connectivity

  1. Access the Prometheus web interface (default port 9090):
http://XXX.XXX.XXX.XXX:9090/
  1. Navigate to StatusTargets.
  2. Verify that the MicroAI Security and Monitoring agent appears as UP.

Prometheus Web Interface Status

---

4. Connecting Grafana with Prometheus Server

  1. On the Grafana homepage, open the left panel.
  2. Click on ConnectionsAdd new data source.
  3. Search for Prometheus and select it.
  4. Under Connection, enter your Prometheus server URL:
http://XXX.XXX.XXX.XXX:9090
  1. Click Save & test.
  2. A confirmation message will indicate a successful connection.

Grafana Successful Connection

---

5. Visualizing Agent Data

  1. On the Grafana homepage, open the left panel.
  2. Click DashboardsNewImport.

Grafana Import

  1. Select the JSON dashboard files from the following path:
  1. Import the following dashboard files:

    • Landing Dashboard - APM.json
    • Service Detail Dashboard - APM.json
    • Transaction Detail Dashboard - APM.json
    • Transaction Traces Dashboard - APM.json
  2. Once imported, you will see dashboards available.

Grafana Dashboard List

  1. Click on Landing Dashboard -APM to view the complete dashboard.

APM Landing Page View

Service View

Transaction View

Transaction View


Note: These dashboards are pre-built templates that work out-of-the-box with data from the MicroAI Application Performance Monitoring agent via Prometheus.