Prometheus Metrics Setup for GCP
Learn how to setup Prometheus Metrics collection for GCP, with Open Telemetry collector running on GKE, to scrape and feed the Aviator Prometheus metrics.
Pre-requisite
Step 1: Create a service account and setup permissions
Step 2: Create a Kubernetes secret for otel-collector
apiVersion: v1
kind: Secret
metadata:
name: otel-config
stringData:
config.yaml: |
receivers:
prometheus:
config:
scrape_configs:
- job_name: "aviator-mergequeue"
metrics_path: "/api/metrics"
scheme: "https"
params:
repos:
- "YOUR_ORG/YOUR_REPO"
authorization:
type: "Bearer"
credentials: "mq_live_ ... YOUR API KEY HERE"
static_configs:
- targets:
- "app.aviator.co"
processors:
resourcedetection:
detectors: [gcp]
timeout: 10s
batch:
send_batch_max_size: 200
send_batch_size: 200
timeout: 5s
memory_limiter:
check_interval: 1s
limit_percentage: 65
spike_limit_percentage: 20
exporters:
googlemanagedprometheus:
service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch, memory_limiter, resourcedetection]
exporters: [googlemanagedprometheus]Step 3: Deploy otel-collector
Step 4: Setup a dashboard

Last updated
Was this helpful?
