Telemetry
A self-hosted Agenta instance sends a small amount of usage data to Agenta. We use it to learn how many instances run, which versions they use, and which features people use. This page explains what is sent and how to turn it off. It covers self-hosted instances only. For Agenta Cloud, see Privacy and data handling.
What is never sent
Agenta never receives your content, such as prompts, traces, test sets or model outputs. From the instance, it never receives email addresses, user names, organization or project names, secrets or license keys. The one email it receives is the one you give when you register. Of the address of your instance, it receives only the host name (for example agenta.example.com), never the full address or a path.
What is sent
An instance sends four kinds of data. Each one is linked to a random instance id, which the database creates when you install Agenta.
- An install ping. A new instance sends one event when its first organization exists. The event carries only the instance id and the instance kind. An instance that upgrades from an older version does not send it.
- A startup event. Each time the API starts, it sends the Agenta version and edition, the host name of the instance, the number of CPUs, the memory, and the operating system, Python and Postgres versions.
- A heartbeat. Every 6 hours, the instance sends counts and settings: the facts of the startup event, how you deployed it (for example Docker Compose or Helm), the plan and the expiry date and seats of the license key, which features are set up (yes or no, never a value), and the number of users by role, projects, API keys and workflows, with workflows also counted by kind (prompts, agents, evaluators and snippets). It also counts the activity since the last heartbeat, such as traces, annotations, test sets, evaluations by status, agent turns by outcome and deployments, and lists the most common email domains of your users, never full addresses.
- Product usage. When a user creates an application, starts an evaluation or sends traces, the instance records that the action happened, with the Agenta version, the user's role and the name and version of the SDK that called. The browser records page views and the answers to the setup questions, with email addresses and links removed from typed answers. Every product event, from the API and from the browser, carries the instance kind (
production,development,ciortest). Users are identified by their id in your database, never by email.
Turn telemetry off
Set the switch on the API and restart it.
- Docker Compose: add
AGENTA_TELEMETRY_ENABLED=falseto your.envfile. - Helm: set
telemetry.enabled: falsein your values file.
With the switch off, the instance sends no startup event, no heartbeat and no product usage. Only the one-time install ping still runs on a new instance, because it carries nothing but the instance id and the instance kind. An instance that upgraded from an older version sends no install ping. The API logs Install ping sent when the ping leaves.
In Helm, telemetry.enabled reaches the API, the workers, cron and services. The web pods keep the PostHog key, but the browser loads analytics only after the API answers that telemetry is on, so when telemetry is off the browser sends nothing. A paid license key that keeps telemetry on also turns the browser analytics on.
A paid license key keeps telemetry on, so the switch has no effect on an instance with one, unless your contract exempts it. The free key you get when you register does not change the switch.
Update check
While people use the instance, it also checks https://agenta.ai/releases.json, at most once every 12 hours, so it can tell you when a newer version or a security fix is available. The check sends the running version, the instance kind and the instance id (for example ?version=v0.131.0&kind=production&instance_id=...) and nothing else about your instance. agenta.ai records each check as an instance_update_check event in the same analytics project, with the instance id as the distinct id. The update check has its own switch, so it still runs when telemetry is off. Turn it off with AGENTA_UPDATE_CHECK_ENABLED=false; then the instance sends nothing to https://agenta.ai/releases.json.
Registration
When an admin registers the instance for a free key, agenta.ai (not the instance) records the registration in the same analytics project. It does this whatever the instance's telemetry switch says, because the admin asked to register. It records three things:
| Event | Distinct id | What it carries |
|---|---|---|
instance_registered | The instance id | email (the email you registered with), agenta_version, plan (self_hosted_registered), the answers to the registration questions (role, team size, where you heard of Agenta), and $groups with the instance |
$groupidentify | The instance id | Sets registered_email on the instance group |
$set | <instance id>:<user id> of the admin who registered | Sets email on that user |
Settings
| Variable | Default | Effect |
|---|---|---|
AGENTA_TELEMETRY_ENABLED | true | false stops the startup event, the heartbeat and product usage. |
AGENTA_UPDATE_CHECK_ENABLED | true | false stops the update check. |
AGENTA_DEPLOYMENT_METHOD | detected | How you deployed Agenta. The compose files, the Helm chart and the Railway template set it. |
AGENTA_TELEMETRY_INSTANCE_KIND | detected | production, development, ci or test. Overrides the detected instance_kind. Set test on an instance that only runs tests. In Helm, set telemetry.instanceKind. |
All settings are listed in Configuration.
Install ping
Event name: instance_installed. The distinct id is the instance id. PostHog keeps one person for each instance, with the instance id as its id, so the startup event and the heartbeat link to the instance group. The API sends no person properties. The event has these properties and no others. The API removes the properties the PostHog library adds on its own.
| Property | Value |
|---|---|
instance_kind | The same value as on the startup event |
$geoip_disable | true. PostHog does not look up a location. |
$ip | Empty. The event itself carries no IP address. |
Startup event
Event name: instance_started. The API sends it each time it starts, when telemetry is on. An API with several worker processes sends one per process. The distinct id is the instance id. If the send fails, the API logs one warning and does not try again until the next start.
| Property | Value |
|---|---|
instance_id | The instance id |
instance_kind | production, development (the web address is localhost or a private address), ci, or the value of AGENTA_TELEMETRY_INSTANCE_KIND when it is set |
agenta_version | The running version, such as v0.129.0 |
edition | oss or ee |
deployment_method | compose, helm, railway, kubernetes, docker, or empty |
instance_host | The host name of AGENTA_WEB_URL, such as agenta.example.com. No scheme, port or path. |
cpu_count | The number of CPUs the API sees |
memory_mb | The memory of the machine, in MiB |
memory_limit_mb | The memory limit of the API container, in MiB, or empty when there is none |
postgres_version | The Postgres server version, such as 16.4 |
$groups | The instance, as a PostHog group of type instance |
$geoip_disable | true. PostHog does not look up a location. |
$lib | The name of the PostHog library |
$lib_version | The version of the PostHog library |
$python_runtime | The Python implementation, such as CPython |
$python_version | The Python version |
$os | The operating system, such as Linux |
$os_version | The operating system version |
$os_distro | The Linux distribution, on Linux only |
$is_server | true. The event comes from a server, not a browser. |
Heartbeat
Event name: instance_heartbeat. An hourly job asks the API for it, and the API sends it when 6 hours have passed since the last one. The distinct id is the instance id. A count that takes longer than 5 seconds is sent as empty.
| Property | Value |
|---|---|
instance_id | The instance id |
instance_kind | As in the startup event |
agenta_version | As in the startup event |
edition | As in the startup event |
deployment_method | As in the startup event |
instance_host | As in the startup event |
cpu_count | As in the startup event |
memory_mb | As in the startup event |
memory_limit_mb | As in the startup event |
postgres_version | As in the startup event |
plan | The plan, such as self_hosted_community |
license_key_id | The id of the license key, never the key |
license_expires_at | When the license key expires |
license_days_left | Days until the license key expires |
license_seats | The seats of the license key |
email_configured | true when SMTP or SendGrid is set up |
sso_configured | true when Okta, Azure AD, SAML or Google Workspaces is set up, or an organization set up its own SSO provider |
social_login_configured | true when a social sign-in, such as Google or GitHub, is set up |
otel_export_configured | true when the API sends its own logs or traces to an OpenTelemetry collector |
composio_configured | true when Composio tools are set up |
llm_gateway_enabled | true when AGENTA_LLM_GATEWAY_ENABLED is on |
timezone | The time zone of the API, such as UTC |
total_organizations | Organizations |
total_projects | Projects |
total_users | Users |
total_workflows | Workflows that are not archived |
total_prompts | Of these, prompts |
total_agents | Of these, agents |
total_evaluators | Of these, evaluators |
total_snippets | Of these, snippets |
total_api_keys | API keys that are not deleted |
users_by_role | Organization members by role, such as {"owner": 1, "editor": 4}. Role names that are not a plain word count under custom. |
window_start | The start of the window: the last heartbeat, or the install date |
window_end | The end of the window |
window_spans | Spans that started in the window |
window_traces | Traces that started in the window |
window_annotations | Annotations made in the window |
window_evaluation_runs | Evaluation runs created in the window |
window_evaluation_runs_by_status | The same runs by their status now, such as {"success": 5, "failure": 1} |
window_evaluation_scenarios | Evaluation scenarios created in the window |
window_agent_turns | Agent turns started in the window |
window_agent_turns_by_outcome | Agent turns that ended in the window, by outcome, such as {"completed": 6, "failed": 1} |
window_revisions | Configuration commits in the window |
window_deployments | Deployments in the window |
window_testsets | Test sets created in the window |
window_testcases | Test cases created in the window |
user_domains | The 100 most common email domains of your users, with the number of users of each. Never a full address. |
$groups | The instance, as a PostHog group of type instance |
$geoip_disable | true. PostHog does not look up a location. |
$lib | The name of the PostHog library |
$lib_version | The version of the PostHog library |
$python_runtime | The Python implementation, such as CPython |
$python_version | The Python version |
$os | The operating system, such as Linux |
$os_version | The operating system version |
$os_distro | The Linux distribution, on Linux only |
$is_server | true. The event comes from a server, not a browser. |
The heartbeat also sets these properties on the instance group: the Agenta version and edition, the kind, the deployment method, the host name, the Postgres version, the plan, the license expiry date and seats, and the totals.
Product events from the API
The API sends one event when a user calls one of the routes below. The distinct id is <instance id>:<user id>, where the user id is the user's id in your database.
| Event | Sent when a user |
|---|---|
app_created | creates an application |
app_variant_created | creates a variant |
app_revision_created | commits a configuration |
environment_revision_created | deploys to an environment |
app_revision_fetched | fetches a configuration with an API key |
testset_created | creates a test set |
testsets_fetched | lists test sets |
testset_updated | changes a test set |
evaluator_created | creates an evaluator |
evaluator_updated | changes an evaluator |
evaluation_created | starts an evaluation |
spans_created | sends traces |
spans_fetched | reads traces |
query_created | creates a query |
user_invitation_sent_v1 | invites a member |
invitation_created | sends an invitation again |
user_signed_up_v1 | signs up |
Each of these events has these properties:
| Property | Value |
|---|---|
path | The route that was called, such as /apps |
method | The HTTP method |
status_code | The HTTP status of the answer |
auth_method | ApiKey, Bearer, Secret or Session |
agenta_version | The running version, such as v0.129.0 |
instance_kind | The same value as on the startup event, so events from development, CI and test instances can be left out |
sdk_name | The client that called: the SDK name it sends, else the first name in its User-Agent, such as python-httpx. Empty for a browser. |
sdk_version | The version that goes with sdk_name |
project_id | The project id, when the route has one |
workspace_id | The workspace id, when the route has one |
organization_id | The organization id, when the route has one |
$groups | The instance, as a PostHog group of type instance |
$set | Sets role on the user: owner, admin, editor, viewer or another role the user has in the project of the event. A role name that is not a plain word is sent as custom. |
The PostHog library also adds its own name and version, the Python version and the operating system.
user_signed_up_v1 has these properties instead:
| Property | Value |
|---|---|
source | auth |
is_cloud | true on Agenta Cloud, false on a self-hosted instance |
cloud_region | Other on a self-hosted instance |
agenta_version | The running version |
instance_kind | The same value as on the startup event |
The first time a user reaches a feature, the API also marks it on the user with an $identify event that carries instance_kind. Each mark is set to true:
| Mark | Set when a user first |
|---|---|
activated_prompt_management | fetches a configuration with an API key |
activated_online_evaluation | creates a query |
activated_observability | sends traces with an API key |
activated_evaluation | starts an evaluation |
activated_playground | creates a variant |
invited_user_v1 | invites a member |