Google Managed Prometheus¶
Warning
Due to updates in the Google Managed Prometheus API, these instructions may be outdated. Please contact our team for support on Slack (https://bit.ly/robusta-slack) or by email (support@robusta.dev). We're working on updating the documentation.
Configure Robusta to use Google Cloud's Managed Service for Prometheus.
Prerequisites¶
Before configuring Robusta, ensure you have:
Google Managed Prometheus configured with:
Quick Start¶
Add the following to your generated_values.yaml:
globalConfig:
prometheus_url: "http://frontend.default.svc.cluster.local:9090"
alertmanager_url: "http://alertmanager.gmp-system.svc.cluster.local:9093"
check_prometheus_flags: false # Required for Google Managed Prometheus
Then update Robusta.
Service Locations¶
Google Managed Prometheus typically deploys services in these locations:
- Prometheus Frontend:
Namespace:
default(or where you deployed it)Service:
frontendPort:
9090
- AlertManager:
Namespace:
gmp-systemService:
alertmanagerPort:
9093
Verify your exact service names:
# Check frontend service
kubectl get svc -n default | grep frontend
# Check AlertManager service
kubectl get svc -n gmp-system | grep alertmanager
Configuration Notes¶
Warning
Google Managed Prometheus does not support the Prometheus flags API. Always set check_prometheus_flags: false.
The Prometheus Frontend must be deployed separately (it's not included by default)
Ensure all required exporters are configured for full functionality
Google Managed Prometheus uses a different architecture than standard Prometheus
Verification¶
After configuration, verify the integration:
Check connectivity:
kubectl run test-curl --image=curlimages/curl --rm -it -- \ curl -v http://frontend.default.svc.cluster.local:9090/-/healthyTest with a demo alert:
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/oomkill/oomkill_job.yamlYou should receive an alert with metrics attached.
Check Robusta logs:
kubectl logs -n robusta deployment/robusta-runner | grep -i prometheus
Next Steps¶
Configure alert routing
Learn about common configuration options