Repository navigation
Turn anonymous telemetry on by default and report each installation - #1200
Merged
Merged
Conversation
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.
Contributor
Author
|
/approve |
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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A released hub now reports to
https://telemetry.railgrid.aiby default, anonymously:--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 asother. The session is a hash of the instance ID and the user agent.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 describebuilds between tags, Tilt, e2e and CI send nothing.Turning it off
--telemetry=falsehub.telemetry.enabled: false--telemetry-instance-report=falsehub.telemetry.instanceReport: false--telemetry-url+--telemetry-website-idhub.telemetry.url/.websiteIDWith
--telemetry-urlset, 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.mdis rewritten around this, including the full instance-report payload; the chartvalues.yamland README document the values.Before this is released
The two Umami websites the IDs in
pkg/hub/telemetry/builtin.gopoint at must exist on telemetry.railgrid.ai, or every event is rejected with 400 (logged at-v 2, otherwise harmless):c0bf8219-b1c5-4ee4-9ab2-e07298355b10self-hosted consoles159f61d1-0ea4-460a-8afa-390fdca1ffb1instancesTesting
make lint,make verify-portalkit; chart rendered with defaults,enabled=false, andinstanceReport=falseplus an own URL.v9.9.9with embedded kcp: resolved its instance ID,/healthzanswered"telemetry": true, and events reached telemetry.railgrid.ai (rejected with 400, the websites do not exist yet). With--telemetry=false:"telemetry": falseand 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 theidfield.