Keycloak Integration
Use this integration when you want to scrape Keycloak metrics from its Prometheus-compatible metrics endpoint and send them to KloudMate through the KloudMate Agent.
Prerequisites
Section titled “Prerequisites”- Install and run the KloudMate Agent.
- Ensure your Keycloak service exposes the
/auth/metricsendpoint. If this endpoint is not available, no metrics will be scraped. - Keycloak must be reachable from the host or cluster where the KloudMate Agent is running.
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 Keycloak Configuration
Section titled “Step 2: Add the Keycloak Configuration”Add the following configuration. Replace <keycloak-service-name> and <namespace> with your actual Kubernetes service name and namespace.
- 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.
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 in KloudMate.
- Query one of the scraped Keycloak metrics.
- Build dashboards or alerts once data is visible.