Enabling Instana metric collection for foundational services

You can enable foundational services to allow Instana to collect metrics about foundational services pod containers.

After you enable Instana metric collection, you can view metrics about foundational services pod containers in Instana. For more information, see Configuring and monitoring supported technologies in the Instana documentation.

Note: The Instana AutoTrace webhook automatically configures Instana tracing on Node.js, .NET Core, Ruby, and Python applications. Follow the instructions to enable the foundational services metric collection on all its supported technologies and Infrastructure metric collections.

Prerequisites

You need a cluster with Instana configured.

Procedure

  1. Enable Instana metric collection by adding enableInstanaMetricCollection: true to the CommonService custom resource (CR) from the namespace where foundational services was installed. The foundational services pod restarts.

    kubectl patch CommonService common-service -n <namespace> --type merge -p '{"spec": {"enableInstanaMetricCollection": true}}'
  2. Go to Instana and check if Instana collects and shows the foundational services metrics.

    Note: The foundational services metrics might not be immediately shown in Instana.

    To view the foundational services metrics in Instana, go to Instana and navigate to Infrastructure > <Your Cluster Name>. For more information about Instana, see Instana documentation.

Disabling Instana metric collection

Disable Instana metric collection. Change the value of the enableInstanaMetricCollection parameter to false in the CommonService CR from the namespace where foundational services was installed. The foundational services pod restarts.

kubectl patch CommonService common-service -n <namespace> --type merge -p '{"spec": {"enableInstanaMetricCollection": false}}'
Note: If you disable Instana metric collection, the foundational services metrics collection from Instana AutoTrace webhook is also disabled.