Datadog Integration

Introduction

You can export metrics of you Hasura Cloud project to your organisation’s Datadog dashboard. This can be configured on the integrations tab on the project’s setting page.

Note

Datadog Integration is only available for Hasura Cloud projects on the Standard (pay-as-you-go) tier.

Configure Datadog Integration

Navigate to the integrations tab on project settings page to find Datadog integration.

Configure Datadog Integration

Select the Datadog API region and enter the Datadog API key (can be retrieved by navigating to Datadog’s settings page by clicking the Get API Key link), host, service name and tags to associate with exported logs. A source tag hasura-cloud-metrics is added to all exported logs.

Field Description
Region If you are in the Datadog EU site (app.datadoghq.eu), the Region should be EU; otherwise, it should be US.
API Key API keys are unique to your organization. An API key is required by the Datadog Agent to submit metrics and events to Datadog. You can get the API key from here if you are in Datadog US region and here if you’re in Datadog EU region.
Host The name of the originating host of the log.
Tags Tags associated with your logs.
Service Name The name of the application or service generating the log events.
Configure Datadog Integration

After adding appropriate values, click Save.

Checking the status of the integration

The green/red dot signifies the status of the integration. Green signifies successful exporting of logs to datadog. When logs are successfully exported, Last Exported is continuously updated, indicating the timestamp of the last log line successfully exported to your Datadog dashboard.

Datadog Integration successfully configured

In case there is an error while exporting logs to datadog, the dot is red and the HTTP status code of the error is displayed right below it.

Datadog Integration successfully configured

View logs

The logs can be viewed in your Datadog dashboard, under the Logs tabs. To navigate to the same, click View Logs.

Datadog Integration successfully configured Logs successfully exported to Datadog

Note

Datadog allows ingestion of logs with maximum size 256kB for a single log. If a log exceeds this limit, Datadog will truncate the log at 256kB.