Expand monitoring when using a Google Cloud Function

There are two ways to add services to Dynatrace monitoring when using a Google Cloud Function: via the service configuration file or using the GCP console. See below for instructions.

Prerequisites

To add services in the service configuration file

  1. Download the activation-config.yaml service configuration file.
wget https://raw.githubusercontent.com/dynatrace-oss/dynatrace-gcp-function/master/activation-config.yaml
  1. Edit the activation.metrics.services section in activation-config.yaml by uncommenting the services you want to monitor.

  2. Download and run the dynatrace-gcp-function installation script in the same folder where you downloaded activation-config.yaml.

wget https://raw.githubusercontent.com/dynatrace-oss/dynatrace-gcp-function/master/scripts/setup.sh -O setup.sh ; chmod a+x setup.sh ; ./setup.sh