Skip to content

Latest commit

 

History

History

README.md

Reference guide, check it only if you are completely stuck or what to verify things.

Installing GMP

  1. Install the GMP CRDs(Custom Resource Definitions):

    kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/prometheus-engine/main/manifests/setup.yaml
  2. 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

  3. Verify installation: confirm pods have running status.

    kubectl get pods -n gmp-system

Configuring Metric Collection and Export

Set up Scraping with PodMonitoring:

  1. 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
  2. Verify Configuration: Check the Prometheus config file to confirm job exists.

    kubectl get configmaps -n gmp-system collector -o yaml

Enable Remote Write:

  1. Edit the Operator Config:

       kubectl apply -n gmp-public -f scenarios/gmp-operator/.reference/config.yaml
  2. Verify your metrics:

   kubectl port-forward -n remote svc/metric-backend 9090
  • Confirm that metrics collected by GMP are visible. Should have the label operator set to gmp