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:
frontend
Port:
9090
- AlertManager:
Namespace:
gmp-system
Service:
alertmanager
Port:
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/-/healthy
Test with a demo alert:
kubectl apply -f https://raw.githubusercontent.com/robusta-dev/kubernetes-demos/main/oomkill/oomkill_job.yaml
You 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