Skip to content

Commit f496832

Browse files
EDU-576: Datadog integration
1 parent 82b63f3 commit f496832

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

content/datadog.textile

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Ably Datadog integration
3+
meta_description: "Connect Ably and Datadog to monitor messages, channels, and connections in realtime, integrating your Ably metrics with your existing Datadog setup."
4+
meta_keywords: "Datadog, integrations, metrics, monitoring, analytics, enterprise"
5+
---
6+
7+
The Ably "Datadog":https://docs.datadoghq.com/integrations/ably/ integration allows "enterprise":/pricing/enterprise users to monitor realtime application metrics like "messages":/messages, "channels":/channels, and connections within Datadog. Data streams every 60 seconds make tracking key performance indicators easier in one place. If you require access, contact "support":https://ably.com/support to enable the integration feature via your "dashboard":https://ably.com/accounts/any.
8+
9+
If you're on the Ably "Pro plan":/pricing/pro, you can enable a limited Datadog-lite integration. "Standard plan":/pricing/standard users may request a 30-day trial to evaluate Datadog-lite before upgrading. This version includes a smaller set of metrics but still provides visibility into your Ably usage. If you need detailed analytics, per-channel breakdowns, custom dashboards, or advanced logging, upgrade to the full Datadog integration available on the Enterprise plan.
10+
11+
|_. Feature |_. Datadog-lite |_. Full Datadog (Enterprise) |
12+
| Messages | ✅ | ✅ |
13+
| Connections | ✅ | ✅ |
14+
| Channels | ✅ | ✅ |
15+
| Bandwidth | ✅ | ✅ |
16+
| Message size | ✅ | ✅ |
17+
| Message direction breakdown (Inbound vs. Outbound) | ❌ | ✅ |
18+
| Per-Channel metrics | ❌ | ✅ |
19+
| Usage analytics & trends | ❌ | ✅ |
20+
| Custom dashboards & alerts | ❌ | ✅ |
21+
| Advanced logging & debugging | ❌ | ✅ |
22+
23+
24+
Ably includes @AppID@ and @AccountID@ tags with each metric to help with data organization. These ID tags enable you to filter, group, and analyze information efficiently, making it more manageable to spot trends and diagnose issues in your Datadog "dashboard":https://docs.datadoghq.com/dashboards/.
25+
26+
To connect Ably and Datadog, you must authorize the integration through Datadog's "OAuth":https://docs.datadoghq.com/developers/integrations/oauth_for_integrations/ flow. This process requires the @api_keys_write@ scope, allowing Ably to push data to your Datadog account. Once the integration is active, Datadog provides a default Ably "dashboard":https://docs.datadoghq.com/integrations/ably/ so that you can monitor key metrics without extra setup.
27+
28+
Every 60 seconds, Ably streams "statistics":https://ably.com/docs/metadata-stats/stats to the Datadog API using the generated API key. Metrics come from channels like @[meta]stats.minute@ and include App ID and Account ID tags. Datadog then displays these metrics in the Ably dashboard, giving you a clear view of messages, channels, and connections.
29+
30+
h2. Set up the Ably Datadog integration
31+
32+
Initiate the integration from the Datadog:
33+
34+
# In Datadog, go to *Integrations*, find the *Ably* tile, and click *Install Integration*.
35+
# Click *Connect Accounts* to start the authorization process. Datadog redirects you to Ably.
36+
# Log in to your *Ably* account.
37+
# Select your application from the *Your Apps* page.
38+
# In the Ably dashboard, navigate to *Integrations* and select *Connect to Datadog*.
39+
# When prompted in Datadog, authorize Ably using *OAuth* to grant access. The required authorization scope is: @api_keys_write@.
40+
# After completing authorization, return to the Ably dashboard. A confirmation banner appears, along with a *See Dashboard* button that takes you to your Datadog dashboard.
41+
42+
h3. Troubleshoot
43+
44+
If the provided information does not resolve your issue, contact Ably "support":https://ably.com/support. When contacting, include details such as your app ID, and any relevant logs to help troubleshoot.
45+
46+
h4. Integration stuck in “Connecting…”
47+
48+
If your connection remains in this state, your setup may have been interrupted.
49+
50+
For example, this can occur when a message is published while the connection is in a suspended state.
51+
52+
*Resolution*: Reauthorize the integration.
53+
54+
h4. Connection failed
55+
56+
If the connection fails, it may be due to incorrect network settings or insufficient OAuth permissions in Datadog.
57+
58+
For example, this can happen if the OAuth scope @api_keys_write@ was not granted during authorization or if network restrictions block communication between Ably and Datadog.
59+
60+
*Resolution*: Verify your network settings and ensure the required OAuth permissions are granted in Datadog.
61+
62+
h4. Duplicate API key
63+
64+
If Datadog notifies you that an API key with this name already exists, it means a key with the same identifier has already been stored in your Datadog account.
65+
66+
For example, this can happen if the integration was previously set up and an existing API key was not removed before attempting a new connection.
67+
68+
*Resolution*: Remove or rename the existing API key in Datadog, then re-initiate the integration.
69+
70+
h2. Remove access
71+
72+
Removing access disconnects Ably from Datadog, stopping data transmission and revoking authorization. Follow the steps below to remove access from both platforms.
73+
74+
h3. Remove access in Ably
75+
76+
* Open your application's integration settings.
77+
* Click *Remove* next to the Datadog integration.
78+
* Ably revokes OAuth credentials and stops metric transmission.
79+
80+
h3. Remove access in Datadog
81+
82+
* Remove associated Ably API keys via *Integrations* or *API Keys*.
83+
* Adjust scopes or entirely revoke OAuth tokens if necessary.

0 commit comments

Comments
 (0)