To collect the metrics from the GCP services like compute, storage, pub-sub etc, we need to make following changes to gcp.yaml
# credential file 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-poc-sd-secret --from-file=./credentials.json
# 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: customer-poc-sd-secret metrics: typePrefixes: "compute.googleapis.com/instance/cpu/utilization,compute.googleapis.com/instance/uptime,custom.googleapis.com,serviceruntime.googleapis.com/quota"