Quick Guide for Datadog Agent on Hosted Platforms for Metrics
The Datadog Agent collects metrics, logs, and traces from your infrastructure and applications, then sends them to Datadog for monitoring and analysis. This guide covers how to install and configure the Datadog Agent on hosted platforms such as AWS, Azure, and Google Cloud. Use this guide to quickly get the agent running and begin collecting metrics from your environment.
Install Datadog Agent
Run the following command on the host instance. It starts collecting and reporting metrics on CPU, memory, network, and uptime for the host instance.
Replace the placeholder <dns> with the correct endpoint name.
DD_UPGRADE=true \
DD_API_KEY=kloudfuse \
DD_URL="https://<KFUSE-DNS>/ingester" \
bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
Collect Metrics
By enabling checks, such as OpenMetrics check, you can direct Datadog to collect additional metrics.
Copy the following example into your conf.yaml file in the openmetrics.d directory.
cp /etc/datadog-agent/conf.d/openmetrics.d/conf.yaml.example \
/etc/datadog-agent/conf.d/openmetrics.d/conf.yaml
For more examples, see Datadog documentation on OpenMetrics.