/
GCP Metrics collection
GCP Metrics collection
Create Credentials File
In the Google Cloud console, go to Menu menu > IAM & Admin > Service Accounts. Go to Service Accounts.
Select your service account (or create a new one).
Ensure that the service account has “Monitoring Viewer” permissions to collect GCP metrics.
Click Keys > Add key > Create new key.
Select JSON, then click Create. ...
Click Close.
Create Kubernetes Secret
Create a Kubernetes secret from the credentials file. Make sure the file is named credentials.json
.
kubectl create secret generic kfuse-sd-secret --from-file=<credentials json file> -n kfuse
Configure Kloudfuse to start collecting metrics.
Update the helm
values with the following configuration. Update the corresponding projectId
of the GCP account and update the typePrefixes
to collect the metrics from relevant services of GCP as described here.
kfuse-cloud-exporter:
Prometheus-stackdriver-exporter:
enabled: true
stackdriver:
httpTimeout: 30s
maxRetries: 3
## gcp project id
projectId: "YOUR PROJECT ID"
## create this secret with access credentials to gcp account
serviceAccountSecret: kfuse-sd-secret
metrics:
typePrefixes: "compute.googleapis.com"
Related content
AWS CloudWatch Metrics, Logs, and Events
AWS CloudWatch Metrics, Logs, and Events
More like this
Victoria Metrics Agent Configuration
Victoria Metrics Agent Configuration
More like this
Datadog Agent setup for Kubernetes
Datadog Agent setup for Kubernetes
Read with this
Metrics Ingestion using Pushgateway
Metrics Ingestion using Pushgateway
More like this
Datadog Agent PostgreSQL Integration
Datadog Agent PostgreSQL Integration
Read with this
Prometheus Remote Write Config
Prometheus Remote Write Config
More like this