|
1 | 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" |
| 2 | +title: Datadog |
| 3 | +meta_description: "Connect Ably and Datadog to monitor messages, channels, and connections in realtime, integrating your Ably statistics with your existing Datadog setup." |
| 4 | +meta_keywords: "Datadog, integrations, statistics, metrics, monitoring, analytics, enterprise" |
5 | 5 | ---
|
6 | 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. |
| 7 | +The Ably "Datadog":https://docs.datadoghq.com/integrations/ably/ integration enables you to monitor your application's statistics. Every 60 seconds, Ably streams a comprehensive set of "statistics":/docs/metadata-stats/stats#metrics to the Datadog API using the a generated API key, which is derived from "metadata subscriptions.":/metadata-stats/metadata/subscribe |
8 | 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. |
| 9 | +h2(#setup). Setup the Datadog integration |
10 | 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 | ❌ | ✅ | |
| 11 | +To connect Ably with Datadog, you must "request"::https://ably.com/support access to the integration. Once granted, you can 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. |
22 | 12 |
|
| 13 | +Once the integration is active, Datadog provides a specific Ably "dashboard":https://docs.datadoghq.com/integrations/ably/, allowing you to monitor key metrics without extra setup. |
23 | 14 |
|
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: |
| 15 | +The following steps setup the Datadog integration: |
33 | 16 |
|
34 | 17 | # In Datadog, go to *Integrations*, find the *Ably* tile, and click *Install Integration*.
|
35 | 18 | # Click *Connect Accounts* to start the authorization process. Datadog redirects you to Ably.
|
36 | 19 | # Log in to your *Ably* account.
|
37 | 20 | # 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 |
| 21 | +# Navigate to *Integrations*, and select *Connect to Datadog*. |
| 22 | +# Datadog authorization page, authorize Ably using *OAuth* to grant access. The required authorization scope is: @api_keys_write@. |
| 23 | +# After completing authorization, you will be redirected to the *Ably dashboard*, and the process is complete. |
55 | 24 |
|
56 |
| -If the connection fails, it may be due to incorrect network settings or insufficient OAuth permissions in Datadog. |
| 25 | +h2(#remove). Remove access |
57 | 26 |
|
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. |
| 27 | +Removing access disconnects Ably from Datadog, stopping data transmission and revoking authorization. Follow the steps remove the Ably and Datadog integration using either platform. |
59 | 28 |
|
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 |
| 29 | +h3(#in-ably). Remove access using Ably |
75 | 30 |
|
76 | 31 | * Open your application's integration settings.
|
77 | 32 | * Click *Remove* next to the Datadog integration.
|
78 | 33 | * Ably revokes OAuth credentials and stops metric transmission.
|
79 | 34 |
|
80 |
| -h3. Remove access in Datadog |
| 35 | +h3(#in-datadog). Remove access using Datadog |
81 | 36 |
|
82 | 37 | * Remove associated Ably API keys via *Integrations* or *API Keys*.
|
83 | 38 | * Adjust scopes or entirely revoke OAuth tokens if necessary.
|
| 39 | + |
| 40 | +h2(#lite). Datadog lite |
| 41 | + |
| 42 | +Ably streams a limited set of "statistics":/docs/metadata-stats/stats#metrics to the Datadog API. Datadog-lite minimizes data usage, making it a cost-effective alternative for use cases that don't need full statistics. |
| 43 | + |
| 44 | +The following statistics are streamed from Ably to Datadog: |
| 45 | + |
| 46 | +* @messages.all.messages@ |
| 47 | +* @messages.all.presence@ |
| 48 | +* @messages.inbound.all.all@ |
| 49 | +* @messages.outbound.all.all@ |
| 50 | +* @connections.all.peak@ |
| 51 | +* @channels.peak@ |
| 52 | +* @push.channelMessages@ |
| 53 | +* @messages.persisted.messages@ |
| 54 | +* @messages.persisted.presence@ |
0 commit comments