Integrating with third-party add-ons
In Anthos Service Mesh 1.8 and later, the Prometheus, Kiali, and Grafana add-ons aren't included in any Anthos Service Mesh profiles.
Note, however, you can install your own instance of Prometheus, Kiali, and Grafana dashboards according to the applicable third-party documentation.
Enabling metrics export to Prometheus
To use the Prometheus, Grafana, or Kiali dashboards, Anthos Service Mesh must be configured to export metrics to Prometheus. Metrics export to Prometheus is enabled by default when you install Anthos Service Mesh on Anthos clusters on VMware or on bare metal. On these platforms, you are all set to install your own instance of the dashboards.
You can enable metrics export to Prometheus instead of Stackdriver (now called Google Cloud's operations suite) on GKE on Google Cloud clusters.
Before you beginFollow the steps in Install dependent tools and validate cluster to:
- Install required tools
- Grant cluster admin permissions
- Validate your project and cluster
Enable metrics export to Prometheus
Follow the steps in the install and upgrade Anthos Service Mesh guide to install or upgrade Anthos Service Mesh on GKE. When you run
asmcli install, include the following option:
./asmcli install \ --project_id PROJECT_ID \ --cluster_name CLUSTER_NAME \ --cluster_location CLUSTER_LOCATION \ --output_dir DIR_PATH \ --enable_all \ --ca mesh_ca \ --option prometheus
Be sure to specify any other overlay files that you need to configure Anthos Service Mesh.
Complete the Anthos Service Mesh installation to enable automatic sidecar proxy injection on your workloads. For new installations, see Deploy and redeploy workloads. For upgrades, see Switch to the new control plane
You can deploy Prometheus and Grafana through the Cloud Marketplace or refer to the following documentation for installation.
Import the dashboards into an existing Grafana deployment.