Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
使用 Helm 部署 ClickStack 的高级配置选项
hyperdx.config
hyperdx.secrets
# values-external-clickhouse.yaml clickhouse: enabled: false # 禁用由 operator 管理的 ClickHouse hyperdx: secrets: CLICKHOUSE_PASSWORD: "your-password" CLICKHOUSE_APP_PASSWORD: "your-password" defaultConnections: | [ { "name": "External ClickHouse", "host": "http://your-clickhouse-server:8123", "port": 8123, "username": "your-username", "password": "your-password" } ]
helm install my-clickstack clickstack/clickstack -f values-external-clickhouse.yaml
# 创建 connections.json cat <<EOF > connections.json [ { "name": "Production ClickHouse", "host": "https://your-production-clickhouse.com", "port": 8123, "username": "hyperdx_user", "password": "your-secure-password" } ] EOF # 创建 sources.json cat <<EOF > sources.json [ { "from": { "databaseName": "default", "tableName": "otel_logs" }, "kind": "log", "name": "Logs", "connection": "Production ClickHouse", "timestampValueExpression": "TimestampTime", "displayedTimestampValueExpression": "Timestamp", "implicitColumnExpression": "Body", "serviceNameExpression": "ServiceName", "bodyExpression": "Body", "eventAttributesExpression": "LogAttributes", "resourceAttributesExpression": "ResourceAttributes", "severityTextExpression": "SeverityText", "traceIdExpression": "TraceId", "spanIdExpression": "SpanId" }, { "from": { "databaseName": "default", "tableName": "otel_traces" }, "kind": "trace", "name": "Traces", "connection": "Production ClickHouse", "timestampValueExpression": "Timestamp", "displayedTimestampValueExpression": "Timestamp", "implicitColumnExpression": "SpanName", "serviceNameExpression": "ServiceName", "traceIdExpression": "TraceId", "spanIdExpression": "SpanId", "durationExpression": "Duration" } ] EOF
kubectl create secret generic hyperdx-external-config \ --from-file=connections.json=connections.json \ --from-file=sources.json=sources.json # 清理本地文件 rm connections.json sources.json
# values-external-clickhouse-secret.yaml clickhouse: enabled: false hyperdx: useExistingConfigSecret: true existingConfigSecret: "hyperdx-external-config" existingConfigConnectionsKey: "connections.json" existingConfigSourcesKey: "sources.json"
helm install my-clickstack clickstack/clickstack -f values-external-clickhouse-secret.yaml
# values-clickhouse-cloud.yaml clickhouse: enabled: false hyperdx: secrets: CLICKHOUSE_PASSWORD: "your-cloud-password" CLICKHOUSE_APP_PASSWORD: "your-cloud-password" useExistingConfigSecret: true existingConfigSecret: "clickhouse-cloud-config" existingConfigConnectionsKey: "connections.json" existingConfigSourcesKey: "sources.json"
# values-external-otel.yaml otel-collector: enabled: false # 禁用子图表 OTel collector hyperdx: otelExporterEndpoint: "http://your-otel-collector:4318"
helm install my-clickstack clickstack/clickstack -f values-external-otel.yaml
# values-minimal.yaml clickhouse: enabled: false otel-collector: enabled: false hyperdx: otelExporterEndpoint: "http://your-otel-collector:4318" # Option 1: Inline (for testing) defaultConnections: | [ { "name": "External ClickHouse", "host": "http://your-clickhouse-server:8123", "port": 8123, "username": "your-username", "password": "your-password" } ] # 选项 2:外部 Secret(生产环境) # useExistingConfigSecret: true # existingConfigSecret: "my-external-config" # existingConfigConnectionsKey: "connections.json" # existingConfigSourcesKey: "sources.json"
helm install my-clickstack clickstack/clickstack -f values-minimal.yaml
此页面对您有帮助吗?