Early Adopter
Starting from the Google Cloud Monitor integration version 1.3.0+, you can extend your metric coverage beyond the predefined set of services supported by extensions.
Possible auto-discovery scenarios depend on the services from which you want to monitor metrics:
This guide is a component of the main Dynatrace Google Cloud Metric and Log Integration setup, and focuses solely on auto-discovery configuration.
If Google Cloud integration has been previously set up using a version earlier than 1.3.0, you need to run a fresh deployment of the complete solution using version 1.3.0+.
If you are managing permissions manually, ensure the following permissions are added to the Dynatrace Google Cloud Metrics Monitor role.
monitoring.metricDescriptors.list
monitoring.monitoredResourceDescriptors.get
monitoring.monitoredResourceDescriptors.list
To enable the auto-discovery metric enrichment, edit the following parameter in values.yaml
:
metricAutodiscovery: "true"
Within the scope of standard supported services, a predetermined set of metrics is routinely sent to Dynatrace. For details on how to enable those services, see Choose services for metrics monitoring.
Auto-discovery mode, however, brings more flexibility by allowing the collection of all available metrics for a particular service.
To enable it, you need to modify the values.yaml
file by searching for the specific service as follows:
- service: cloud_service_nameallowAutodiscovery: True
Expand the following table for a list of resources currently monitored by supported services that can be extended with auto-discovery.
For situations where the extended monitoring capabilities of supported services are insufficient, Google Cloud auto-discovery provides a solution to monitor any service offered by Google.
The helm deployment package contains the autodiscovery-values.yaml
file with the necessary configuration for this scenario. Edit this file to set the required and optional parameter values as follows.
autodiscoveryQueryInterval
60
.60
autodiscoveryIncludeAlphaMetrics
true
, it enables the automatic discovery of experimental Google Cloud metrics withthe 'Alpha' label.true
autodiscoveryAddLabels
true
, it appends the label [Autodiscovered]
to metric names during automatic discovery.true
autodiscoveryResourcesYaml
autodiscoveryBlockListYaml
Specify the metrics to be sent to Dynatrace by listing the resource types of the monitored resources in the autodiscoveryResourcesYaml
section. To identify the resources for monitoring within your project, see Google Cloud metrics.
Example:
autodiscoveryResourcesYaml: |autodicovery_config:searched_resources:- memcache_node
To exclude specific metrics, list their prefixes in the autodiscoveryBlockListYaml
section. Any matching metric will be excluded.
Example:
autodiscoveryBlockListYaml: |block_list:- memcache.googleapis.com/node/