mirror of
https://github.com/hanzoai/otel-collector.git
synced 2026-11-03 02:20:04 +00:00
Rename the two exporters Hanzo owns to drop the "clickhouse" brand: - exporter/clickhousetracesexporter -> exporter/datastoretracesexporter (package, component id clickhousetraces -> datastoretraces) - exporter/clickhouselogsexporter -> exporter/datastorelogsexporter (package, component id clickhouselogsexporter -> datastorelogsexporter) - symbols: WithClickHouseClient -> WithDatastoreClient, newClickhouseClient -> newDatastoreClient, pushToClickhouse -> pushToDatastore, clickhouseTracesExporter -> datastoreTracesExporter; files clickhouse_exporter*.go -> datastore_exporter*.go. Left intact (external, not ours): github.com/ClickHouse/clickhouse-go/v2 wire driver (clickhouse.Open/Conn/ParseDSN) and github.com/srikanthccv/ ClickHouse-go-mock test helper (cmock.NewClickHouseNative / NewClickHouseWithQueryMatcher). Sibling clickhousemetricswrite exporter and clickhousesystemtablesreceiver are out of scope. go build ./components/ and go vet of both packages pass.
21 lines
730 B
YAML
21 lines
730 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
otel-collector:
|
|
image: ghcr.io/hanzoai/otel-collector:latest
|
|
container_name: otel
|
|
user: root # required for reading docker container logs
|
|
command:
|
|
- "--config=/etc/otel-collector-config.yml"
|
|
- "--set=service.telemetry.logs.level=DEBUG"
|
|
volumes:
|
|
- ./otel-collector-config.yml:/etc/otel-collector-config.yml
|
|
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
|
- /var/log:/var/log:ro
|
|
# required to read logs from /var/lib/docker/containers/
|
|
ports:
|
|
- "1888:1888" # pprof extension
|
|
- "8888:8888" # Prometheus metrics exposed by the collector
|
|
- "13133:13133" # health_check extension
|
|
- "55679:55679" # zpages extension
|