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 node where the KloudMate Agent is running.
Step 1: Define the Prometheus Receiver
Section titled “Step 1: Define the Prometheus Receiver”Add the following Prometheus receiver to your Agent configuration file (typically /etc/km-agent/config.yaml). Replace <keycloak-service-name> and <namespace> with your actual Kubernetes service name and namespace.
Validate indentation carefully when copying scrape_configs into the Agent configuration.
Step 2: Add to Pipeline
Section titled “Step 2: Add to Pipeline”Add the Prometheus receiver to the metrics pipeline in your Agent configuration.
Step 3: Restart the Agent
Section titled “Step 3: Restart the Agent”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 alarms once data is visible.