---
title: Environment variables to configure the Universal Profiling Agent
description: The Universal Profiling Agent can be configured with environment variables. 
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/environment-variables-to-configure-universal-profiling-agent
products:
  - Elastic Observability
---

# Environment variables to configure the Universal Profiling Agent
The Universal Profiling Agent can be configured with environment variables.
<warning>
  Command line arguments to the Universal Profiling Agent take precedence over environment variables, and environment variables take precedence over the configuration file.
</warning>


| Environment variable                | Example                                                                | Description                                                                                                                                                                                                                                                                                                                                                          |
|-------------------------------------|------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `PRODFILER_VERBOSE`                 | `PRODFILER_VERBOSE=true`                                               | Run the Universal Profiling Agent in verbose mode.                                                                                                                                                                                                                                                                                                                   |
| `PRODFILER_NO_KERNEL_VERSION_CHECK` | `PRODFILER_NO_KERNEL_VERSION_CHECK=true`                               | Disable the kernel version check. See [Override kernel version check ](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/override-kernel-version-check)Override kernel version check  for more details.                                                                                                     |
| `PRODFILER_TAGS`                    | `PRODFILER_TAGS="cloud_region:us-central1;env:staging"`                | Set specific tags. See [Tag data for querying](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/tag-data-for-querying)Tag data for querying for more details.                                                                                                                                              |
| `PRODFILER_PROJECT_ID`              | `PRODFILER_PROJECT_ID=73`                                              | Set project ID to 73.                                                                                                                                                                                                                                                                                                                                                |
| `PRODFILER_SECRET_TOKEN`            | `PRODFILER_SECRET_TOKEN=my_secret_token`                               | Set the secret token to `my_secret_token`.                                                                                                                                                                                                                                                                                                                           |
| `PRODFILER_COLLECTION_AGENT`        | `PRODFILER_COLLECTION_AGENT=example.com:443`                           | Set the destination for reporting profiling information to `example.com:443`.                                                                                                                                                                                                                                                                                        |
| `PRODFILER_PROBABILISTIC_THRESHOLD` | `PRODFILER_PROBABILISTIC_THRESHOLD=50`                                 | Set the probabilistic threshold to `50`. See [Probabilistic profiling](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/configure-probabilistic-profiling)Probabilistic profiling for more details.                                                                                                        |
| `PRODFILER_PROBABILISTIC_INTERVAL`  | `PRODFILER_PROBABILISTIC_INTERVAL=2m30s`                               | Set the probabilistic interval to `2m30s`. See [Probabilistic profiling](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/configure-probabilistic-profiling)Probabilistic profiling for more details.                                                                                                      |
| `PRODFILER_CONFIG`                  | `PRODFILER_CONFIG=/etc/Elastic/universal-profiling/pf-host-agent.conf` | Set the path for the configuration file of the Universal Profiling Agent. See [Configuration file of the Universal Profiling Agent](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/infra-and-hosts/configuration-file-of-universal-profiling-agent)Configuration file of the Universal Profiling Agent for more details. |