Skip to main content
Version: v2.0

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, ci or test). 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=false to your .env file.
  • Helm: set telemetry.enabled: false in 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:

EventDistinct idWhat it carries
instance_registeredThe instance idemail (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
$groupidentifyThe instance idSets registered_email on the instance group
$set<instance id>:<user id> of the admin who registeredSets email on that user

Settings​

VariableDefaultEffect
AGENTA_TELEMETRY_ENABLEDtruefalse stops the startup event, the heartbeat and product usage.
AGENTA_UPDATE_CHECK_ENABLEDtruefalse stops the update check.
AGENTA_DEPLOYMENT_METHODdetectedHow you deployed Agenta. The compose files, the Helm chart and the Railway template set it.
AGENTA_TELEMETRY_INSTANCE_KINDdetectedproduction, 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.

PropertyValue
instance_kindThe same value as on the startup event
$geoip_disabletrue. PostHog does not look up a location.
$ipEmpty. 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.

PropertyValue
instance_idThe instance id
instance_kindproduction, development (the web address is localhost or a private address), ci, or the value of AGENTA_TELEMETRY_INSTANCE_KIND when it is set
agenta_versionThe running version, such as v0.129.0
editionoss or ee
deployment_methodcompose, helm, railway, kubernetes, docker, or empty
instance_hostThe host name of AGENTA_WEB_URL, such as agenta.example.com. No scheme, port or path.
cpu_countThe number of CPUs the API sees
memory_mbThe memory of the machine, in MiB
memory_limit_mbThe memory limit of the API container, in MiB, or empty when there is none
postgres_versionThe Postgres server version, such as 16.4
$groupsThe instance, as a PostHog group of type instance
$geoip_disabletrue. PostHog does not look up a location.
$libThe name of the PostHog library
$lib_versionThe version of the PostHog library
$python_runtimeThe Python implementation, such as CPython
$python_versionThe Python version
$osThe operating system, such as Linux
$os_versionThe operating system version
$os_distroThe Linux distribution, on Linux only
$is_servertrue. 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.

PropertyValue
instance_idThe instance id
instance_kindAs in the startup event
agenta_versionAs in the startup event
editionAs in the startup event
deployment_methodAs in the startup event
instance_hostAs in the startup event
cpu_countAs in the startup event
memory_mbAs in the startup event
memory_limit_mbAs in the startup event
postgres_versionAs in the startup event
planThe plan, such as self_hosted_community
license_key_idThe id of the license key, never the key
license_expires_atWhen the license key expires
license_days_leftDays until the license key expires
license_seatsThe seats of the license key
email_configuredtrue when SMTP or SendGrid is set up
sso_configuredtrue when Okta, Azure AD, SAML or Google Workspaces is set up, or an organization set up its own SSO provider
social_login_configuredtrue when a social sign-in, such as Google or GitHub, is set up
otel_export_configuredtrue when the API sends its own logs or traces to an OpenTelemetry collector
composio_configuredtrue when Composio tools are set up
llm_gateway_enabledtrue when AGENTA_LLM_GATEWAY_ENABLED is on
timezoneThe time zone of the API, such as UTC
total_organizationsOrganizations
total_projectsProjects
total_usersUsers
total_workflowsWorkflows that are not archived
total_promptsOf these, prompts
total_agentsOf these, agents
total_evaluatorsOf these, evaluators
total_snippetsOf these, snippets
total_api_keysAPI keys that are not deleted
users_by_roleOrganization members by role, such as {"owner": 1, "editor": 4}. Role names that are not a plain word count under custom.
window_startThe start of the window: the last heartbeat, or the install date
window_endThe end of the window
window_spansSpans that started in the window
window_tracesTraces that started in the window
window_annotationsAnnotations made in the window
window_evaluation_runsEvaluation runs created in the window
window_evaluation_runs_by_statusThe same runs by their status now, such as {"success": 5, "failure": 1}
window_evaluation_scenariosEvaluation scenarios created in the window
window_agent_turnsAgent turns started in the window
window_agent_turns_by_outcomeAgent turns that ended in the window, by outcome, such as {"completed": 6, "failed": 1}
window_revisionsConfiguration commits in the window
window_deploymentsDeployments in the window
window_testsetsTest sets created in the window
window_testcasesTest cases created in the window
user_domainsThe 100 most common email domains of your users, with the number of users of each. Never a full address.
$groupsThe instance, as a PostHog group of type instance
$geoip_disabletrue. PostHog does not look up a location.
$libThe name of the PostHog library
$lib_versionThe version of the PostHog library
$python_runtimeThe Python implementation, such as CPython
$python_versionThe Python version
$osThe operating system, such as Linux
$os_versionThe operating system version
$os_distroThe Linux distribution, on Linux only
$is_servertrue. 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.

EventSent when a user
app_createdcreates an application
app_variant_createdcreates a variant
app_revision_createdcommits a configuration
environment_revision_createddeploys to an environment
app_revision_fetchedfetches a configuration with an API key
testset_createdcreates a test set
testsets_fetchedlists test sets
testset_updatedchanges a test set
evaluator_createdcreates an evaluator
evaluator_updatedchanges an evaluator
evaluation_createdstarts an evaluation
spans_createdsends traces
spans_fetchedreads traces
query_createdcreates a query
user_invitation_sent_v1invites a member
invitation_createdsends an invitation again
user_signed_up_v1signs up

Each of these events has these properties:

PropertyValue
pathThe route that was called, such as /apps
methodThe HTTP method
status_codeThe HTTP status of the answer
auth_methodApiKey, Bearer, Secret or Session
agenta_versionThe running version, such as v0.129.0
instance_kindThe same value as on the startup event, so events from development, CI and test instances can be left out
sdk_nameThe 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_versionThe version that goes with sdk_name
project_idThe project id, when the route has one
workspace_idThe workspace id, when the route has one
organization_idThe organization id, when the route has one
$groupsThe instance, as a PostHog group of type instance
$setSets 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:

PropertyValue
sourceauth
is_cloudtrue on Agenta Cloud, false on a self-hosted instance
cloud_regionOther on a self-hosted instance
agenta_versionThe running version
instance_kindThe 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:

MarkSet when a user first
activated_prompt_managementfetches a configuration with an API key
activated_online_evaluationcreates a query
activated_observabilitysends traces with an API key
activated_evaluationstarts an evaluation
activated_playgroundcreates a variant
invited_user_v1invites a member