Overview
Cloud IoT is a fully managed service that allows you to easily and securely connect, manage, and ingest data from millions of globally dispersed devices.
Use the Datadog Google Cloud Platform integration to collect metrics from Google Cloud IoT.
Setup
Installation
If you haven’t already, set up the Google Cloud Platform integration first. There are no other installation steps.
Log collection
Google Cloud IoT logs are collected with Google Cloud Logging and sent to a Dataflow job through a Cloud Pub/Sub topic. If you haven’t already, set up logging with the Datadog Dataflow template.
Once this is done, export your Google Cloud IoT logs from Google Cloud Logging to the Pub/Sub topic:
- Go to the Google Cloud Logging page and filter the Google Cloud IoT logs.
- Click Create Export and name the sink.
- Choose “Cloud Pub/Sub” as the destination and select the Pub/Sub topic that was created for that purpose. Note: The Pub/Sub topic can be located in a different project.
- Click Create and wait for the confirmation message to show up.
Data Collected
Metrics
gcp.cloudiot.device.active_devices (gauge) | Count of the number of devices that have recently sent data to Cloud IoT Core. Shown as device |
gcp.cloudiot.device.billing_bytes_count (gauge) | Count of the number of billable bytes transferred by devices. Shown as byte |
gcp.cloudiot.device.error_count (count) | Delta count of errors communicating with devices, grouped by error type. Shown as error |
gcp.cloudiot.device.operation_count (count) | Delta count of operations performed, grouped by operation type. Shown as operation |
gcp.cloudiot.device.received_bytes_count (count) | Delta count of number of bytes received from devices. Shown as byte |
gcp.cloudiot.device.sent_bytes_count (count) | Delta count of number of bytes sent by devices. Shown as byte |
Events
The Google Cloud IoT integration does not include any events.
Service Checks
The Google Cloud IoT integration does not include any service checks.
Troubleshooting
Need help? Contact Datadog support.