- 1. Download and Install Prometheus Server
- 2. Setup Prometheus Server
- 3. Verify Prometheus and Agent Connectivity
- 4. Connecting Grafana with Prometheus Server
- 5. Visualizing Agent Data
- Visit the official Prometheus download page: https://prometheus.io/download/ and download the package for your operating system.
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.gzAll MicroAI APM Agents export Prometheus metrics on port 9100.
- Open the
prometheus.ymlconfiguration file. - Add a new job under the
scrape_configssection with the agent IPs as targets.
scrape_configs:
- job_name: "MicroAI-APM"
static_configs:
- targets: ["XXX.XXX.XXX.XXX:9100", "XXX.XXX.XXX.XXX:9100"]-
Save and close the configuration file.
-
Ensure the Prometheus binary has execute permissions:
chmod +x prometheus- Start Prometheus:
./prometheus- Access the Prometheus web interface (default port
9090):
http://XXX.XXX.XXX.XXX:9090/
- Navigate to Status → Targets.
- Verify that the MicroAI Security and Monitoring agent appears as UP.
- On the Grafana homepage, open the left panel.
- Click on Connections → Add new data source.
- Search for Prometheus and select it.
- Under Connection, enter your Prometheus server URL:
http://XXX.XXX.XXX.XXX:9090
- Click Save & test.
- A confirmation message will indicate a successful connection.
- On the Grafana homepage, open the left panel.
- Click Dashboards → New → Import.
- Select the JSON dashboard files from the following path:
- Landing Dashboard - APM.json
- Service Detail Dashboard - APM.json
- Transaction Detail Dashboard - APM.json
- Transaction Traces Dashboard - APM.json
-
Import the following dashboard files:
Landing Dashboard - APM.jsonService Detail Dashboard - APM.jsonTransaction Detail Dashboard - APM.jsonTransaction Traces Dashboard - APM.json
-
Once imported, you will see dashboards available.
- Click on Landing Dashboard -APM to view the complete dashboard.
Note: These dashboards are pre-built templates that work out-of-the-box with data from the MicroAI Application Performance Monitoring agent via Prometheus.







