# Google Cloud Monitor Troubleshooting

**URL:** <https://community.dynatrace.com/t/google-cloud-monitor-troubleshooting/45273>\
**Category:** Troubleshooting\
**Tags:** google-cloud-platform, dynatrace-managed, troubleshooting-guide, logs\
**Created:** [May 7, 2024, 6:44am UTC](https://community.dynatrace.com/t/google-cloud-monitor-troubleshooting/45273 "2024-05-07T06:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquin\_Filipic](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Joaquin\_Filipic](https://community.dynatrace.com/u/Joaquin_Filipic)\
**Post date:** [May 7, 2024, 6:44am UTC](https://community.dynatrace.com/t/google-cloud-monitor-troubleshooting/45273/1 "2024-05-07T06:44:15Z")

</div>

**1. Installation didn’t finish successfully.**

Before you begin, make sure that you have all the required tools installed in supported versions. For more details, see the [list of tools](https://docs.dynatrace.com/docs/shortlink/existing-gke#tools).

Since the integration requires the deployment of resources in your Google Cloud environment, sometimes prerequisite conditions are not met, or there are misconfigurations. For more details, see the [list of prerequisites](https://docs.dynatrace.com/docs/shortlink/existing-gke#prerequisites).

Make sure that you have access to the Kubernetes cluster. For example, execute the following command:

```auto
kubectl get pods

```

If there is no connection, [configure the connection](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/google-cloud-platform/gcp-integrations/gcp-guide/set-up-gcp-integration-on-existing-cluster#connect).

Then, make sure that there is a connection between the current machine (VM or Cloud console) and your DT environment:

```auto
curl -v https://<specified_dynatrace_URL>

```

Once the connection between your VM and DT is verified, check the connection between your K8s cluster and your DT environment:

```auto
kubectl -n dynatrace run --restart=Never --rm -it comm-check --image=curlimages/curl -- -v "https://<specified_dynatrace_URL>"

```

If the communication between your Google Cloud environment and DT is not the problem, you need to make sure that that the deployment script has all required permissions. To do that, you need to verify whether the dynatrace\_monitor.helm\_deployment role was created in the proper project and has [all the required permissions](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/google-cloud-platform/gcp-integrations/gcp-guide/set-up-gcp-integration-on-existing-cluster#expand--dynatrace-gcp-monitor-helm-deployment-role-yaml).

You can do it either:

- In your Cloud console (_IAM_ service \> _Roles_ section) or
- By executing the following commands:

```auto
gcloud iam roles list --project=<my_project>
gcloud iam roles describe <DT_monitoring_role> --project=<my_project>

```

If the role is created properly, make sure that it is added to your user in the IAM. For more details, see how to [grant access](https://cloud.google.com/iam/docs/granting-changing-revoking-access#single-role).

Other external errors should appear in the console after running the installation script. If the installation went through, you can try [these commands](https://docs.dynatrace.com/docs/shortlink/deploy-k8#verify) to verify it.

**2. Missing metrics in Dynatrace**

Sometimes, the metrics we expect to observe (for a given combination of filters) are not being generated in Google Cloud in the first place, so nothing will be collected and ingested into DT.

Firstly, verify that there are existing data points for a given query. You can do this in your Cloud console:

1. See the _Monitoring_ service \> _Metrics explorer_ section

2. Selecting any desired metric and applying filters.

If there is no data, no chart will be displayed. If there is data for a given query, you will be able to apply the same query (same filtering, grouping, etc.) in Dynatrace’s [Data Explorer](https://docs.dynatrace.com/docs/observe-and-explore/explorer) and to compare the results.

For more details, see the [list of supported metrics per service](https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/google-cloud-platform/gcp-integrations/gcp-supported-service-metrics-new).

**3. Missing logs in Dynatrace**

Sometimes, the logs we expect to observe are not being generated or configured to be collected in Google Cloud in the first place, so nothing will be ingested into DT.

Firstly, verify that the resource you want to monitor generates logs. You can do this in your Cloud console:

- By selecting an existing instance and looking for its _Logs_ section in the chosen service or
- Through the _Logging_ service. See the _Logs explorer_ section and [construct a query](https://cloud.google.com/logging/docs/view/building-queries#query-builder-menus).

If logs from a certain resource are generated properly, make sure that the Log Routing Sink rules are configured to send them to the PubSub Topic. To configure that, see [Google’s documentation](https://cloud.google.com/logging/docs/export/configure_export_v2).

You can check which logs will be collected through the Cloud console (_Logging_ service \> _Log Router_ section). By editing the selected Sink from the list, in the _Choose logs to include in sink_ section there is the possibility to preview the logs---depending on the applied filter.

**4. Missing entities in Dynatrace**

There might be instances of resources you have created in Google Cloud that are not appearing in Dynatrace.

Verify that the instances in Google Cloud that you want to monitor have traffic (refer to the previous sections---2. and 3.). Without data generated by those instances, no entities will be created in Dynatrace.

**5. Delayed logs in Dynatrace**

If you go over the stated [throughput limits](https://docs.dynatrace.com/docs/shortlink/deploy-k8#scalingguide), delays in log ingestion will start to appear.

One way to check if you are dealing with bigger loads is by observing the metrics _Oldest unacked message age_ and _Unacked messages_ of your PubSub Subscription (Cloud console \> _Monitoring_ service \> _Metrics explorer_ section), filtering by your subscription’s instance.

If you notice increasing values in those charts, it means that the messages are being queued and cannot be processed in real time. In that case, you need to follow our aforementioned [scaling guide](https://docs.dynatrace.com/docs/shortlink/deploy-k8#scalingguide).

**6. Other errors**

Any error during the collection of data from the Google Cloud environment and ingestion into Dynatrace should appear in the logs from the deployed GKE containers.

You can check them through your Cloud console, in the _Kubernetes Engine_ service. In the _Workloads_ section, select your deployment and go to the _Logs_ tab. There’s also a button to view those logs in the _Logs Explorer_, with the option to download and export them.

Search there for any error or misconfiguration, or collect evidence from your environment (logs, screenshots, explanations, etc.) and contact Support.
