Prerequisites
- If you don’t have a service account for observability services, create one.
-
Make sure that the service account is in a group that has at least the
editorrole within your tenant; for example, the defaulteditorsgroup. You can check this in the Administration → IAM section of the web console. If the service account is not in the required group, click → Add to group, and selecteditors. Only users with theadminrole can add a service account to a group. -
Issue a static key for the service account. Set the
serviceparameter toOBSERVABILITY. Copy the token of the static key. You will need it later in the configuration steps.
How to start ingesting metrics
- Connect to your Managed Service for Kubernetes cluster.
-
Create a namespace for the observability components:
-
Create a Kubernetes Secret for your token:
In this command, specify the
tokenvalue of the static key that you got earlier. -
Install and update the Prometheus Monitoring Community repository with Helm charts:
-
Customize the kube-prometheus-stack chart:
-
Open the
values.yamlfile: -
Paste the following configuration into the
values.yaml:In this configuration, specify your region ID from the region list, and your project ID. The configuration disables the bundled Grafana® and Alertmanager components, runs Prometheus in agent mode and configures a write endpoint to push metrics to Observability Metrics.
-
Open the
-
Install the chart:
-
Check the installation: