Skip to content

Commit 7d911f8

Browse files
committed
notes on OpAmp
1 parent eaf00d0 commit 7d911f8

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

docs/use-cases/observability/clickstack/deployment/docker-compose.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,17 @@ Users can modify settings for the stack, such as the version used, through the e
8989
```bash
9090
user@example-host hyperdx % cat .env
9191
# Used by docker-compose.yml
92+
# Used by docker-compose.yml
93+
HDX_IMAGE_REPO=docker.hyperdx.io
9294
IMAGE_NAME=ghcr.io/hyperdxio/hyperdx
9395
IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx
94-
IMAGE_NAME_HDX=docker.hyperdx.io/hyperdx/hyperdx
9596
LOCAL_IMAGE_NAME=ghcr.io/hyperdxio/hyperdx-local
9697
LOCAL_IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx-local
9798
ALL_IN_ONE_IMAGE_NAME=ghcr.io/hyperdxio/hyperdx-all-in-one
9899
ALL_IN_ONE_IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx-all-in-one
99100
OTEL_COLLECTOR_IMAGE_NAME=ghcr.io/hyperdxio/hyperdx-otel-collector
100101
OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB=hyperdx/hyperdx-otel-collector
101-
CHANGESET_TAG=2.0.0-beta.16
102+
CODE_VERSION=2.0.0-beta.16
102103
IMAGE_VERSION_SUB_TAG=.16
103104
IMAGE_VERSION=2-beta
104105
IMAGE_NIGHTLY_TAG=2-nightly
@@ -108,6 +109,10 @@ HYPERDX_API_PORT=8000 #optional (should not be taken by other services)
108109
HYPERDX_APP_PORT=8080
109110
HYPERDX_APP_URL=http://localhost
110111
HYPERDX_LOG_LEVEL=debug
112+
HYPERDX_OPAMP_PORT=4320
113+
114+
# Otel/Clickhouse config
115+
HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE=default
111116
```
112117

113118
### Configuring the OpenTelemetry collector {#configuring-collector}
@@ -128,7 +133,9 @@ This distribution can be used with ClickHouse Cloud. Users should:
128133
CLICKHOUSE_ENDPOINT: '<CLICKHOUSE_ENDPOINT>' # https endpoint here
129134
CLICKHOUSE_USER: '<CLICKHOUSE_USER>'
130135
CLICKHOUSE_PASSWORD: '<CLICKHOUSE_PASSWORD>'
136+
HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE: ${HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE}
131137
HYPERDX_LOG_LEVEL: ${HYPERDX_LOG_LEVEL}
138+
OPAMP_SERVER_URL: 'http://app:${HYPERDX_OPAMP_PORT}'
132139
ports:
133140
- '13133:13133' # health_check extension
134141
- '24225:24225' # fluentd receiver

docs/use-cases/observability/clickstack/deployment/hyperdx-only.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,4 @@ Users can modify the [Docker Compose configuration](/use-cases/observability/cli
7070

7171
Even if you are managing your own OpenTelemetry collector, independent of the other components in the stack, we still recommend using the ClickStack distribution of the collector. This ensures the default schema is used and best practices for ingestion are applied.
7272

73-
This image configuration can be found [here](https://github.com/hyperdxio/hyperdx/tree/v2/docker/otel-collector) and can be deployed with the following command:
74-
75-
```bash
76-
docker run -e OPAMP_SERVER_URL=${OPAMP_SERVER_URL} -e CLICKHOUSE_ENDPOINT=CLICKHOUSE_ENDPOINT -e CLICKHOUSE_USER=USER -e CLICKHOUSE_PASSWORD=PASSWORD -p 4317:4127 -p 4318:4318 docker.hyperdx.io/hyperdx/hyperdx-otel-collector:2-nightly
77-
```
78-
79-
For example,
80-
81-
```bash
82-
docker run -e OPAMP_SERVER_URL=http://localhost:4320 -e CLICKHOUSE_ENDPOINT=myhost:9000 -e CLICKHOUSE_USER=default -e CLICKHOUSE_PASSWORD=password -p 4317:4127 -p 4318:4318 docker.hyperdx.io/hyperdx/hyperdx-otel-collector:2-nightly
83-
```
84-
85-
The `OPAMP_SERVER_URL` variable should point to your HyperDX deployment e.g. `http://localhost:4320`. This runs an OpAMP (Open Agent Management Protocol) server endpoint at `/v1/opamp` on port 4320 by default. This ensures the collectors OTLP interface is secured with the ingestion API key. See [Securing the collector](/use-cases/observability/clickstack/ingesting-data/otel-collector#securing-the-collector). The `CLICKHOUSE_ENDPOINT` here should be the full ClickHouse endpoint including the protocol and port e.g. `http://localhost:8123`.
86-
87-
88-
This command exposes an OTLP endpoint on ports 4317 (HTTP) and 4318 (gRPC) for users to send OTel events.
89-
90-
For further details on deploying and configuring the collector see ["Ingesting with OpenTelemetry"](/use-cases/observability/clickstack/ingesting-data/opentelemetry) and ["ClickStack OpenTelemetry Collector"](/use-cases/observability/clickstack/ingesting-data/otel-collector).
73+
For details on deploying and configuring a standalone collector see ["Ingesting with OpenTelemetry"](/use-cases/observability/clickstack/ingesting-data/otel-collector#modifying-otel-collector-configuration).

docs/use-cases/observability/clickstack/ingesting-data/collector.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ export CLICKHOUSE_USER=<CLICKHOUSE_USER>
4747
export CLICKHOUSE_PASSWORD=<CLICKHOUSE_PASSWORD>
4848
```
4949

50+
The `CLICKHOUSE_ENDPOINT` should be the full ClickHouse HTTP endpoint, including the protocol and port—for example, `http://localhost:8123`.
51+
5052
For example the all-in-one image:
5153

5254
```bash
@@ -59,7 +61,11 @@ Or the standalone image:
5961
docker run -e OPAMP_SERVER_URL=${OPAMP_SERVER_URL} -e CLICKHOUSE_ENDPOINT=${CLICKHOUSE_ENDPOINT} -e CLICKHOUSE_USER=default -e CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD} -p 8080:8080 -p 4317:4317 -p 4318:4318 docker.hyperdx.io/hyperdx/hyperdx-otel-collector:2-nightly
6062
```
6163

62-
The `OPAMP_SERVER_URL` variable should point to your HyperDX deployment e.g. `http://localhost:4320`. This runs an OpAMP (Open Agent Management Protocol) server endpoint at `/v1/opamp` on port 4320 by default. This ensures the collectors OTLP interface is secured with the ingestion API key. See [Securing the collector](#securing-the-collector).
64+
The `OPAMP_SERVER_URL` should point to your HyperDX deployment - for example, `http://localhost:4320`. HyperDX exposes an OpAMP (Open Agent Management Protocol) server at `/v1/opamp` on port `4320` by default, ensuring the collector is configured securely to use the ingestion API key. For details, see [Securing the collector](/use-cases/observability/clickstack/ingesting-data/otel-collector#securing-the-collector).
65+
66+
:::note Connecting to and exposing the OpAMP port
67+
For the collector to connect to the OpAMP port it must be exposed by the HyperDX container e.g. `-p 4320:4320`. For local testing, OSX users can then set `OPAMP_SERVER_URL=http://host.docker.internal:4320`. Linux users can start the collector container with `--network=host`.
68+
:::
6369

6470
#### Docker Compose {#docker-compose-otel}
6571

docs/use-cases/observability/clickstack/ingesting-data/opentelemetry.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ To deploy the connector, run the following docker command:
4040
docker run -e OPAMP_SERVER_URL=${OPAMP_SERVER_URL} -e CLICKHOUSE_ENDPOINT=${CLICKHOUSE_ENDPOINT} -e CLICKHOUSE_USER=default -e CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD} -p 8080:8080 -p 4317:4317 -p 4318:4318 docker.hyperdx.io/hyperdx/hyperdx-otel-collector:2-nightly
4141
```
4242

43-
Note that we can overwrite the target ClickHouse instance with environment variables for `CLICKHOUSE_ENDPOINT`, `CLICKHOUSE_USERNAME`, and `CLICKHOUSE_PASSWORD`. **These environment variables can be used with any of the docker distributions which include the connector.** The `CLICKHOUSE_ENDPOINT` here should be the full ClickHouse endpoint including the protocol and port e.g. `http://localhost:8123`.
43+
Note that we can overwrite the target ClickHouse instance with environment variables for `CLICKHOUSE_ENDPOINT`, `CLICKHOUSE_USERNAME`, and `CLICKHOUSE_PASSWORD`. The `CLICKHOUSE_ENDPOINT` should be the full ClickHouse HTTP endpoint, including the protocol and port—for example, `http://localhost:8123`.
4444

45-
The `OPAMP_SERVER_URL` variable should point to your HyperDX deployment e.g. `http://localhost:4320`. This runs an OpAMP (Open Agent Management Protocol) server endpoint at `/v1/opamp` on port 4320 by default. This ensures the collectors OTLP interface is secured with the ingestion API key.
45+
**These environment variables can be used with any of the docker distributions which include the connector.**
4646

47+
The `OPAMP_SERVER_URL` should point to your HyperDX deployment - for example, `http://localhost:4320`. HyperDX exposes an OpAMP (Open Agent Management Protocol) server at `/v1/opamp` on port `4320` by default. Make sure to expose this port from the container running HyperDX (e.g., using `-p 4320:4320`).
4748

4849
Users should use a user with the [appropriate credentials](/use-cases/observability/clickstack/ingesting-data/otel-collector#creating-an-ingestion-user) in production.
4950

@@ -65,7 +66,7 @@ In addition, an authorization header containing the API ingestion key is require
6566
<Image img={ingestion_key} alt="Ingestion keys" size="lg"/>
6667

6768

68-
For language SDKs, this can either be set by an `init` function or via an`OTEL_EXPORTER_OTLP_HEADERS` environment variable:
69+
For language SDKs, this can either be set by an `init` function or via an`OTEL_EXPORTER_OTLP_HEADERS` environment variable e.g.:
6970

7071
```bash
7172
OTEL_EXPORTER_OTLP_HEADERS='authorization=<YOUR_INGESTION_API_KEY>'

0 commit comments

Comments
 (0)