Skip to content

docs: fix ClickStack collector env var CLICKHOUSE_USERNAME -> CLICKHOUSE_USER#6389

Open
andrewdunndev wants to merge 1 commit into
ClickHouse:mainfrom
andrewdunndev:fix/clickstack-collector-clickhouse-user-env
Open

docs: fix ClickStack collector env var CLICKHOUSE_USERNAME -> CLICKHOUSE_USER#6389
andrewdunndev wants to merge 1 commit into
ClickHouse:mainfrom
andrewdunndev:fix/clickstack-collector-clickhouse-user-env

Conversation

@andrewdunndev

@andrewdunndev andrewdunndev commented Jun 15, 2026

Copy link
Copy Markdown

What

The ClickStack OpenTelemetry collector ingestion page describes the ClickHouse user env var as CLICKHOUSE_USERNAME in its prose, but the collector reads CLICKHOUSE_USER. This corrects the four prose references to match.

Why

The page contradicts itself. The prose (4 places) says CLICKHOUSE_USERNAME, while every code example on the same page (Helm extraEnvs, the docker run lines, the compose snippets) uses CLICKHOUSE_USER, and the collector's bundled config.standalone.yaml interpolates username: ${env:CLICKHOUSE_USER}. CLICKHOUSE_USERNAME is not read anywhere in the collector.

The failure is quiet: setting CLICKHOUSE_USERNAME is ignored, the username resolves to an empty string, and ingestion still works against the default auth-less ClickHouse. It only surfaces once ClickHouse requires a password, where the empty user fails authentication. Anyone following the prose to point the collector at a password-protected ClickHouse hits this.

Change

Four prose occurrences of CLICKHOUSE_USERNAME to CLICKHOUSE_USER in docs/use-cases/observability/clickstack/ingesting-data/collector.md. The code examples were already correct and are untouched.


Note

Low Risk
Documentation-only wording fix with no runtime or config changes.

Overview
Updates four prose references on the ClickStack OpenTelemetry collector ingestion page so the documented ClickHouse username env var is CLICKHOUSE_USER, matching Helm/Docker examples and what the collector actually reads—not CLICKHOUSE_USERNAME.

Covers both Managed ClickStack and Open Source ClickStack sections (endpoint/password env var lists and “modifying configuration” text). No code or example blocks are changed.

Reviewed by Cursor Bugbot for commit 38e3f90. Bugbot is set up for automated code reviews on this repo. Configure here.

…USE_USER

The OTel collector ingesting-data page names CLICKHOUSE_USERNAME in its prose
(four places), but the collector's bundled config reads ${env:CLICKHOUSE_USER}
and every code example on the same page already uses CLICKHOUSE_USER.
CLICKHOUSE_USERNAME is not read by the collector, so it is silently ignored:
the username resolves empty and authentication fails against a password-
protected ClickHouse. Align the prose with the code examples and the config.

Signed-off-by: Andrew G. Dunn <andrew@dunn.dev>
@andrewdunndev andrewdunndev requested a review from a team as a code owner June 15, 2026 03:37
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

@andrewdunndev is attempting to deploy a commit to the ClickHouse Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Jun 15, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clickhouse-docs Ready Ready Preview Jun 15, 2026 4:21pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants