Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To collect the metrics from the GCP services like compute, storage, pub-sub etc, we need to make following changes to gcp.yaml

Code Block
# credentialCredential file (credentials.json) is provided by customer which is the key downloaded, 
# for the service account with "MONITOR VIEWER" permissions to collect gcp metrics
# filename should credentials.json
kubectl create secret generic customer-pockfuse-sd-secret --from-file=./credentials.json

Code Block
# Update the typePrefixes to collect the metrics from relevant services of GCP
# as described here https://github.com/prometheus-community/stackdriver_exporter
kfuse-cloud-exporter:
  prometheus-stackdriver-exporter:
    enabled: true
    stackdriver:
      enabled: false
      httpTimeout: 30s
      maxRetries: 3
      ## gcp project id
      projectId: "YOUR PROJECT ID"
      ## create this secret with access credentials to gcp account
      serviceAccountSecret: customerkfuse-poc-sd-secret
      metrics:
        typePrefixes: "compute.googleapis.com/instance/cpu/utilization,compute.googleapis.com/instance/uptime,custom.googleapis.com,serviceruntime.googleapis.com/quota"