--- title: GCP Prometheus tags: gcp, prometheus --- # Google Cloud Managed Service per Prometheus * [Google Cloud Managed Service per Prometheus](https://cloud.google.com/stackdriver/docs/managed-prometheus) * [设置自部署收集](https://cloud.google.com/stackdriver/docs/managed-prometheus/setup-unmanaged#config-unmg-collection) * image: gke.gcr.io/prometheus-engine/prometheus:v2.35.0-gmp.2-gke.0 * prometheus.yml ``` global: external_labels: project_id: PROJECT_ID location: ZONE namespace: local-testing ``` * 透過secret manager mount: /etc/prometheus/prometheus.yml # CloudRun 權限 * Cloud Run Service Agent * Cloud SQL Client * Monitoring Metric Writer * Monitoring Viewer