This repository provides a Datadog cartridge for Openshift v2, which is EOL. This repository is thus deprecated, no further support will be provided. For Openshift v3 monitoring, see https://github.com/DataDog/datadog-agent/blob/8ba26c4f2512f2d185726013073c3ef08c47c021/Dockerfiles/agent/OPENSHIFT.md
The Datadog cartridge lets you install the Datadog Agent on your gears and collect metrics from your apps. This cartridge supports both scalable and non-scalable apps.
Get your Datadog API key here and define the DATADOG_API_KEY
environment variable in your OpenShift app:
rhc set-env DATADOG_API_KEY=your_api_key -a myapp
Add the cartridge to your gear:
rhc cartridge-add http://cartreflect-claytondev.rhcloud.com/github/datadog/datadog-openshift -a myapp
Ssh to your gear to work with the agent:
ssh XXXXXXXXX@myapp.rhcloud.com
If you have trouble connecting to your gear, read this guide.
You can use several commands to interact with the Agent:
$OPENSHIFT_DATADOG_DIR/bin/control start
$OPENSHIFT_DATADOG_DIR/bin/control stop
$OPENSHIFT_DATADOG_DIR/bin/control restart
$OPENSHIFT_DATADOG_DIR/bin/control status
$OPENSHIFT_DATADOG_DIR/bin/control info
Configuration files for the integrations are located here:
cd $OPENSHIFT_DATADOG_DIR/dd-agent/agent/conf.d/
At this point, the Agent should be running on the gear and appear on the Infrastructure Overview. You can configure integrations in Datadog to monitor databases, caches, etc. Here the list of the available integrations, complete with configuration instructions.
In the case of a scalable app, the Datadog Agent will be installed and configured automatically on every new gear created for scalibility purpose.
See the detailed documentation on our website: http://docs.datadoghq.com/guides/basic_agent_usage/