Reference guide, check it only if you are completely stuck or what to verify things.
-
Install the GMP CRDs(Custom Resource Definitions):
kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/prometheus-engine/main/manifests/setup.yaml
-
Install the GMP operator:
kubectl apply -f scenarios/gmp-operator/.reference/operator.yaml
For this contribFest we're using the latest image of gmp-operator, which is not released yet. Usually you would apply https://raw.githubusercontent.com/GoogleCloudPlatform/prometheus-engine/main/manifests/operator.yaml
-
Verify installation: confirm pods have
runningstatus.kubectl get pods -n gmp-system
-
Apply a PodMonitoring: PodMonitoring's tell the Prometheus collectors what to scrape.
kubectl apply -n gmp-system -f scenarios/gmp-operator/.reference/metric-source-podmonitoring.yaml
-
Verify Configuration: Check the Prometheus config file to confirm job exists.
kubectl get configmaps -n gmp-system collector -o yaml
-
Edit the Operator Config:
kubectl apply -n gmp-public -f scenarios/gmp-operator/.reference/config.yaml
-
Verify your metrics:
kubectl port-forward -n remote svc/metric-backend 9090- Confirm that metrics collected by GMP are visible. Should have the label
operatorset togmp