Servers
Adding Datadog to Cloud 66
Overview
Datadog is natively integrated with Cloud 66. You can add it to your Cloud 66 account via the web Dashboard. We will handle the installation and integration with your application. All you need to get going is:
- An active Cloud 66 application
- A Datadog account
- A Datadog API key (how-to)
We support a variety implementations from basic (just Metrics) to full which includes Metrics, Logs, APM (Application Performance Management) and Processes, NPM & Security (containerized apps only).
Enabling Datadog on your account
To enable Datadog on your account:
- Log into your Dashboard and open an app you wish to monitor
- Click on Settings in the left-hand panel
- Click on Integrations in the sub-menu that opens
- Click the Add Datadog Account Details button
- Add your API key and choose the Datadog site you use (.com or .eu)
- Click Save
You will taken back to the Integrations section of your app where you can activate the integration. To do this:
- Click the Add Integration button
- Choose the type of installation you require (we install Metrics by default - all other features are optional)
- Click Save
We’ll now install Datadog on your app - you should see metrics begin flowing within a few minutes of installation (depending on how much traffic your app receives).
Enabling Datadog on other apps
Once you’ve enabled Datadog on your account, integrating it with your other apps is a quicker process.
- Log into your Dashboard and open an app you wish to monitor
- Click on Settings in the left-hand panel
- Click on Integrations in the sub-menu that opens
- Click the Add Integration button
- Choose the type of installation you require (we install Metrics by default - all other features are optional)
- Click Save
Excluding Nginx logs from Datadog
By default the Datadog integration will collect all the logs from your application, including those from Nginx. If you’d prefer to exclude Nginx logs from your Datadog account:
- Add the following environment variable to your application:
DD_CONTAINER_EXCLUDE_LOGS=kube_namespace:^datadog$ kube_namespace:^kube- name:nginx
- Edit the Datadog integration on your application, and save it again, which will cause it to be re-installed.
Note that this env_var actually already exists by default with the default value: kube_namespace:^datadog$ kube_namespace:^kube-
, and excludes logs generally considered unhelpful (from Kubernetes and Datadog itself). All we are doing here is explicitly adding name:nginx
so that logs with file paths including “nginx” will also be excluded from Datadog.
Updating a Datadog integration
If you need to add or remove Datadog features from an app:
- Log into your Dashboard and open the app
- Click on Settings in the left-hand panel
- Click on Integrations in the sub-menu that opens
- Click the Edit Configuration link
- Update your integration settings
- Click Save Changes
Removing Datadog from an app
To remove Datadog:
- Log into your Dashboard and open the app
- Click on Settings in the left-hand panel
- Click on Integrations in the sub-menu that opens
- Click the trashcan icon to delete the integration
We will now uninstall Datadog from your app.
Updating your Datadog API key
To update your Datadog API key:
- Log into your Dashboard and click your avatar (top right)
- Select Account Settings
- Click on External Services in the Settings panel on the left
- Click on the Datadog tab at the top of the main panel
- Click Edit Account Configuration
- Add the new API key and click Save
You can also delete your Datadog settings completely using this page, if you prefer.