• Home
  • Deploy Dynatrace
  • Set up Dynatrace on cloud platforms
  • Google Cloud Platform
  • Integrations
  • End-to-end guide for monitoring GCP services integrating Operations Suite
  • Set up the Dynatrace GCP metric and log integration on a new GKE Autopilot cluster
  • Self-monitoring for the Dynatrace GCP integration

Self-monitoring for the Dynatrace GCP integration

Self-monitoring allows quick diagnosis to determine if a self-monitoring function is properly processing and sending logs to Dynatrace

Enable self-monitoring

Follow the steps below according to your deployment scenario.

Enable self-monitoring for the GKE deployment

  1. Connect to the Kubernetes cluster where the GCP Monitor deployment is running.

  2. Edit the configmap.

    plaintext
    kubectl -n dynatrace edit configmaps dynatrace-gcp-monitor-config
  3. Change the value of the SELF_MONITORING_ENABLED parameter to true.

  4. Restart the GKE GCP Monitor.

    plaintext
    kubectl -n dynatrace rollout restart deployment dynatrace-gcp-monitor

Enable self-monitoring for the GCP Monitor deployment

  1. In the GCP console, go to Cloud Functions.
  2. Select dynatrace-gcp-monitor.
  3. Select Edit.
  4. Under Runtime, build and connection settings, change the value of the SELF_MONITORING_ENABLED runtime environment variable to true.
  5. Select Next, and then select Deploy to apply the new settings.

Self-monitoring metrics

The Dynatrace GCP Monitor deployment reports self-monitoring metrics as Google Cloud metrics. See below the list of self-monitoring metrics for metric/log ingest.

Self-monitoring metrics for the GKE deployment

Metric ingestion

MetricDescription
MINT lines ingestedThe number of data points (metrics with dimensions) ingested by Dynatrace Metrics API v2 in a given interval.
Dynatrace connectivityThe connectivity status (1 = OK) between the monitoring function and Dynatrace. Connectivity can be broken due to an incorrect Dynatrace URL, an incorrect API token, or network connectivity issues.
Dynatrace failed requests countThe number of requests rejected by Dynatrace Metrics API v2. The reason for failure can be that the data point value doesn't comply with the metric ingestion protocol syntax, or that the limit for metric ingestion is exceeded.
Dynatrace requests countThe number of requests sent to Dynatrace.

Log ingestion

MetricDescription
All requestsAll requests sent to Dynatrace
Dynatrace connectivity failuresThe number of failed requests to connect to Dynatrace
Too old recordsThe number of log records that were invalid because the timestamp was too old
Too long content sizeThe number of records with content exceeding the maximum content length
Parsing errorsThe number of errors that occurred while parsing logs
Processing timeThe total amount of time for processing logs
Sending timeThe total amount of time for sending logs
Sent logs entriesThe number of log entries sent to Dynatrace
Log ingest payload sizeThe size of the log payload sent to Dynatrace (in KB)

Self-monitoring metrics for the GCP Monitor deployment

Metric ingestion

MetricDescription
MINT lines ingestedThe number of data points (metrics with dimensions) ingested by Dynatrace Metrics API v2 in a given interval.
Dynatrace connectivityThe connectivity status (1 = OK) between the monitoring function and Dynatrace. Connectivity can be broken due to an incorrect Dynatrace URL, an incorrect API token, or network connectivity issues.
Dynatrace failed requests countThe number of requests rejected by Dynatrace Metrics API v2. The reason for failure can be that the data point value doesn't comply with the metric ingestion protocol syntax, or that the limit for metric ingestion is exceeded.
Dynatrace requests countThe number of requests sent to Dynatrace.

View self-monitoring metrics

The self-monitoring dashboards present multiple metrics related to Dynatrace connectivity status, the amount of data processed, and execution times.

To view the dashboards with self-monitoring metrics

  1. In your GCP console, go to the GCP Monitoring service.
  2. Select Dashboards.
  3. Depending on the type of deployment selected, search for
    • The dynatrace-gcp-monitor log self monitoring dashboard (for logs)
    • The dynatrace-gcp-monitor self monitoring dashboard (for metrics)

Example dashboard:

Self monitor

Related topics
  • Set up Dynatrace on Google Cloud Platform

    Monitor Google Cloud Platform with Dynatrace.