Prometheus Integration
Use this integration when your workloads already expose Prometheus metrics, and you want KloudMate to ingest them without changing application code.
KloudMate does not scrape Prometheus directly. Instead, you configure the KloudMate Agent with the Prometheus receiver and export the collected metrics to KloudMate.
Prerequisites
Section titled “Prerequisites”- Install and run the KloudMate Agent.
- Ensure you can access the Prometheus configuration or know the scrape targets you want the Agent to use.
Step 1: Open the Collector Configuration
Section titled “Step 1: Open the Collector Configuration”- Go to Settings → Agents.
- Find the agent you want to configure and select the three dots.
- Choose Configure.
- Go to Collector config.
Step 2: Add the Prometheus Configuration
Section titled “Step 2: Add the Prometheus Configuration”Add the following configuration. You can copy scrape jobs from your existing Prometheus configuration or define a smaller metrics-only subset for KloudMate.
- If the agent runs in managed mode, add it to the Custom config override section. See Custom config override.
- If the agent runs in manual mode, add it directly to the collector configuration.
The otlphttp exporter is already configured by default when you install the KloudMate Agent.
Validate indentation carefully when copying scrape_configs into the Agent configuration.
Step 3: Save the Configuration
Section titled “Step 3: Save the Configuration”Click Save. The Agent restarts and applies the new configuration.
Step 4: Validate in KloudMate
Section titled “Step 4: Validate in KloudMate”After the Agent restarts:
- open Explore
- query one of the scraped Prometheus metrics
- build dashboards or alerts once the data is visible