---
title: Getting Started with Datadog
description: Generates flare with profiles based on user-defined memory and CPU thresholds.
breadcrumbs: Docs > Integrations > Agent Profiling Check
---

# Agent Profiling Check
Supported OS 
## Overview{% #overview %}

This check should be used when troubleshooting a memory or CPU issue in the Agent. After a user-configured memory or CPU threshold is exceeded, a flare with profiles is automatically generated. This flare can be generated locally or sent directly to a Datadog Support case. A valid `ticket_id` and `user_email` must be provided in the `conf.yaml` for the flare to be sent directly to a Support case. It is otherwise generated locally.

## Setup{% #setup %}

### Installation{% #installation %}

The System check is included in the [Datadog Agent](https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information) package. No additional installation is needed on your server.

### Configuration{% #configuration %}

1. Edit the `agentprofiling.d/conf.yaml` file in the `conf.d/` folder at the root of your [Agent's configuration directory](https://docs.datadoghq.com/agent/guide/agent-configuration-files/#agent-configuration-directory). See the [sample agentprofiling.d/conf.yaml](https://github.com/DataDog/datadog-agent/blob/main/cmd/agent/dist/conf.d/agentprofiling.d/conf.yaml.example) for all available configuration options. **Note**: At least one entry is required under `instances` to enable the check, for example:

   ```yaml
   init_config:
   instances:
       - memory_threshold: 1GB
         cpu_threshold: 50
         ticket_id: # Given by Support
         user_email: # Email used in correspondence with Support
   ```

1. [Restart the Agent](https://docs.datadoghq.com/agent/guide/agent-commands/#start-stop-restart-the-agent).

### Validation{% #validation %}

[Run the Agent's status subcommand](https://docs.datadoghq.com/agent/guide/agent-commands/#agent-status-and-information) and look for `agentprofiling` under the Checks section.

## Data collected{% #data-collected %}

### Metrics{% #metrics %}

The Agent Profiling check does not include any metrics.

### Events{% #events %}

The Agent Profiling check does not include any events.

### Service checks{% #service-checks %}

The Agent Profiling check does not include any service checks.
