mirror of
https://github.com/hanzoai/o11y.git
synced 2026-11-03 02:04:48 +00:00
Verified against ghcr.io/hanzoai/datastore:26.6.1.1, the image these files run:
config /etc/datastore-server, data /var/lib/datastore, config root <datastore>,
client /usr/bin/datastore-client, and an entrypoint that reads DATASTORE_* and
nothing else. The mounts pointed at /etc/clickhouse-server and
/var/lib/clickhouse, which the image does not have, and passed CLICKHOUSE_* the
entrypoint ignores.
.devenv bound ${PWD}/../../../deploy/common/clickhouse/custom-function.xml; that
directory is deploy/common/datastore.
Service, hostname, volume, anchor and swarm-config names follow, and the cluster
XML replicas match the compose hostnames again.
The eight built-in integrations credited [email protected] and o11y.io, which
does not resolve; ours is o11y.hanzo.ai. The datastore integration is titled
Hanzo Datastore. Its id stays — an installed integration references it.
data-collected.json and the dashboards keep ClickHouseProfileEvents_* and
ClickHouseAsyncMetrics_*: those are the names the server binary emits, checked
in the running pod.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
services:
|
|
observe-otel-collector:
|
|
image: observe/observe-otel-collector:v0.142.0
|
|
container_name: observe-otel-collector-dev
|
|
entrypoint:
|
|
- /bin/sh
|
|
command:
|
|
- -c
|
|
- |
|
|
/observe-otel-collector migrate sync check &&
|
|
/observe-otel-collector --config=/etc/otel-collector-config.yaml
|
|
volumes:
|
|
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
|
environment:
|
|
- OTEL_RESOURCE_ATTRIBUTES=host.name=observe-host,os.type=linux
|
|
- LOW_CARDINAL_EXCEPTION_GROUPING=false
|
|
- O11Y_OTEL_COLLECTOR_DATASTORE_DSN=tcp://datastore:9000
|
|
- O11Y_OTEL_COLLECTOR_DATASTORE_CLUSTER=cluster
|
|
- O11Y_OTEL_COLLECTOR_DATASTORE_REPLICATION=true
|
|
- O11Y_OTEL_COLLECTOR_TIMEOUT=10m
|
|
ports:
|
|
- "4317:4317" # OTLP gRPC receiver
|
|
- "4318:4318" # OTLP HTTP receiver
|
|
- "13133:13133" # health check extension
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- wget
|
|
- --spider
|
|
- -q
|
|
- localhost:13133
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
networks:
|
|
- default
|
|
- o11y-devenv
|
|
|
|
networks:
|
|
o11y-devenv:
|
|
name: o11y-devenv
|