Skip to content

Turn anonymous telemetry on by default and report each installation - #1200

Merged
railgrid-prow[bot] merged 1 commit into
railgrid:mainfrom
mjudeikis:default-on-telemetry
Nov 20, 2026
Merged

railgrid-prow[bot] merged 1 commit into
railgrid:mainfrom
mjudeikis:default-on-telemetry

Conversation

@mjudeikis

Copy link
Copy Markdown
Contributor

What

A released hub now reports to https://telemetry.railgrid.ai by default, anonymously:

  • Console usage (page views and marked clicks) no longer needs --telemetry-url. Sent to the built-in destination, an event carries no browser address, no hostname, no arrival origin, and any provider name that is not Railgrid-published is reported as other. The session is a hash of the instance ID and the user agent.
  • A daily instance report, new: a hashed instance ID, the hub version, kcp mode, auth mode, size classes of organizations and users (0, 1, 2-5, 6-20, ...), and the Railgrid-published providers installed. First report 5 to 10 minutes after start, then every 24 hours, from the leader only.

The instance ID is a one-way hash of the UID of the users workspace's LogicalCluster, so it is stable across restarts and replicas and nothing is stored for it.

Only a tagged release (v1.2.3, v1.2.3-rc.1) uses the built-in destination. dev, git describe builds between tags, Tilt, e2e and CI send nothing.

Turning it off

Goal Flag Chart value
Send nothing anywhere --telemetry=false hub.telemetry.enabled: false
Turn off only the instance report --telemetry-instance-report=false hub.telemetry.instanceReport: false
Send console events to your own Umami instead --telemetry-url + --telemetry-website-id hub.telemetry.url / .websiteID

With --telemetry-url set, console events go only to the operator's backend, with today's behaviour (browser address, hostname, referrer). The instance report is independent and still goes to Railgrid until turned off.

docs/telemetry.md is rewritten around this, including the full instance-report payload; the chart values.yaml and README document the values.

Before this is released

The two Umami websites the IDs in pkg/hub/telemetry/builtin.go point at must exist on telemetry.railgrid.ai, or every event is rejected with 400 (logged at -v 2, otherwise harmless):

  • c0bf8219-b1c5-4ee4-9ab2-e07298355b10 self-hosted consoles
  • 159f61d1-0ea4-460a-8afa-390fdca1ffb1 instances

Testing

  • Unit tests for destination resolution, release detection, the anonymous relay, the report payload and its schedule, and the Umami payload.
  • make lint, make verify-portalkit; chart rendered with defaults, enabled=false, and instanceReport=false plus an own URL.
  • A hub built as v9.9.9 with embedded kcp: resolved its instance ID, /healthz answered "telemetry": true, and events reached telemetry.railgrid.ai (rejected with 400, the websites do not exist yet). With --telemetry=false: "telemetry": false and both telemetry routes refused.

Not verified: that Umami records the events once the websites exist, in particular that it accepts the instance report's user agent rather than discarding it as a bot (the sink now reports a {"beep":"boop"} answer as an error) and keys the session on the id field.

A released hub now sends console usage to telemetry.railgrid.ai without
any configuration, and reports once a day that the installation exists:
a hashed instance ID, the version, kcp and auth mode, size classes of
organizations and users, and the Railgrid-published providers installed.

The built-in destination gets no browser address, no hostname, no arrival
origin and no provider name an operator chose. Only a tagged release uses
it, so development builds, Tilt, e2e and CI report nothing.

--telemetry=false turns everything off, --telemetry-instance-report=false
only the daily report, and --telemetry-url still sends console events to
the operator's own Umami instead of Railgrid's.
@mjudeikis
mjudeikis requested a review from cwilhit as a code owner November 20, 2026 14:50
@mjudeikis

Copy link
Copy Markdown
Contributor Author

/approve

@railgrid-prow

railgrid-prow Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@railgrid-prow
railgrid-prow Bot merged commit 2230ed6 into railgrid:main Nov 20, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant