This page covers self-managed ClickHouse Observability. For the recommended fully managed experience, see the documentation here.
User interface
Data source settings
The UI relies on the user defining a source for each of the Observability data types/pillars:LogsTracesMetricsSessions
The ClickStack collector creates its default tables through bundled schema migrations. These schemas build on the ClickHouse exporter for the OTel collector and the OpenTelemetry data model.
Logs
Traces
Metrics
Sessions
Materialized views
Materialized views can be registered against Log and Trace data sources so that eligible aggregation queries are answered from the pre-aggregated view instead of the source table. For guidance on creating and registering views, see “Materialized views”. Each registered view is configured with the following settings:
When you select the target table, the UI attempts to infer these settings from the view schema. Review the inferred values and complete any missing fields.
Metadata materialized views
Metadata materialized views are materialized views which accelerate field discovery for filters and autocomplete. They can be configured on Log and Trace data sources.Highlighted Attributes
Highlighted Attributes and Highlighted Trace Attributes can be configured on Log and Trace data sources.- Highlighted Attributes are columns or expressions which are displayed for each log or span, when viewing log or span details.
- Highlighted Trace Attributes are columns or expressions which are queried from each log or span in a trace, and displayed above the trace waterfall.
For example, this trace source has been configured with a Highlighted Attribute and a Highlighted Trace Attribute:
These attributes are displayed in the side panel after clicking on a log or span:
Clicking on an attribute provides options for using the attribute as a search value. If the optional Lucene expression is provided in the attribute configuration, then the Lucene expression will be used for the search instead of the SQL expression.
Correlated sources
To enable full cross-source correlation, you must configure correlated sources for logs, traces, metrics, and sessions. This allows the UI to associate related data and provide rich context when rendering events.Logs: Can be correlated with traces and metrics.Traces: Can be correlated with logs, sessions, and metrics.Metrics: Can be correlated with logs.Sessions: Can be correlated with traces.
OpenTelemetry collector
See “ClickStack OpenTelemetry Collector” for more details.-
CLICKHOUSE_ENDPOINT- Default: None (required) for the standalone collector image.
- Description: The ClickHouse connection URL used by the exporter.
- Guidance:
- Use a secure ClickHouse Cloud endpoint, such as
https://<host>:8443ortcp://<host>:9440?secure=true - Required for the collector to send data to ClickHouse
- Use a secure ClickHouse Cloud endpoint, such as
-
CLICKHOUSE_USER- Default:
defaultin the migration tool; set explicitly for the standalone collector. - Description: Username used to authenticate with the ClickHouse instance.
- Guidance:
- The user needs permission to insert telemetry and, when schema creation or migrations are enabled, to create or alter the required database objects
- Recommended to create a dedicated user for ingestion
- Default:
-
CLICKHOUSE_PASSWORD- Default: None (required if authentication is enabled)
- Description: Password for the specified ClickHouse user.
- Guidance:
- Required if the user account has a password set
- Store securely via secrets in production deployments
-
HYPERDX_LOG_LEVEL- Default: Deployment-specific; set explicitly, for example
info. - Description: Log verbosity level for the collector.
- Guidance:
- Accepts values like
debug,info,warn,error - Use
debugduring troubleshooting
- Accepts values like
- Default: Deployment-specific; set explicitly, for example
-
OTLP_AUTH_TOKEN- Default: None. Used only for standalone image.
- Description: Sets the token required for standalone OTLP ingestion. The current collector accepts its value in the
Authorizationheader either directly or with aBearerprefix. Older collector versions may require the bare token. Ignored when OIDC authentication is configured. - Guidance:
- Configure authentication before exposing the collector. Without a token or OIDC configuration, the standalone OTLP receiver accepts unauthenticated requests.
-
HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE- Default:
defaultin the migration tool; set explicitly for the standalone collector. - Description: ClickHouse database the collector writes telemetry data to.
- Guidance:
- Set if using a custom database name
- Ensure the specified user has access to this database
- Default: