Skip to content

Commit 54622bb

Browse files
authored
build: config opamp port (#866)
Ref: HDX-1799
1 parent 854c4b1 commit 54622bb

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ HYPERDX_API_PORT=8000 #optional (should not be taken by other services)
1818
HYPERDX_APP_PORT=8080
1919
HYPERDX_APP_URL=http://localhost
2020
HYPERDX_LOG_LEVEL=debug
21+
HYPERDX_OPAMP_PORT=4320
2122

2223
# TEMPORARY: local development
2324
HYPERDX_API_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
CLICKHOUSE_ENDPOINT: 'tcp://ch-server:9000?dial_timeout=10s'
2929
HYPERDX_API_KEY: ${HYPERDX_API_KEY}
3030
HYPERDX_LOG_LEVEL: ${HYPERDX_LOG_LEVEL}
31-
OPAMP_SERVER_URL: 'http://host.docker.internal:4320'
31+
OPAMP_SERVER_URL: 'http://host.docker.internal:${HYPERDX_OPAMP_PORT}'
3232
volumes:
3333
- ./docker/otel-collector/config.yaml:/etc/otelcol-contrib/config.yaml
3434
- ./docker/otel-collector/supervisor_docker.yaml:/etc/otel/supervisor.yaml

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
environment:
3131
CLICKHOUSE_ENDPOINT: 'tcp://ch-server:9000?dial_timeout=10s'
3232
HYPERDX_LOG_LEVEL: ${HYPERDX_LOG_LEVEL}
33-
OPAMP_SERVER_URL: http://app:4320
33+
OPAMP_SERVER_URL: 'http://app:${HYPERDX_OPAMP_PORT}'
3434
ports:
3535
- '13133:13133' # health_check extension
3636
- '24225:24225' # fluentd receiver
@@ -57,6 +57,7 @@ services:
5757
MINER_API_URL: 'http://miner:5123'
5858
MONGO_URI: 'mongodb://db:27017/hyperdx'
5959
NEXT_PUBLIC_SERVER_URL: http://127.0.0.1:${HYPERDX_API_PORT}
60+
OPAMP_PORT: ${HYPERDX_OPAMP_PORT}
6061
OTEL_SERVICE_NAME: 'hdx-oss-api'
6162
USAGE_STATS_ENABLED: ${USAGE_STATS_ENABLED:-true}
6263
DEFAULT_CONNECTIONS:
@@ -68,7 +69,6 @@ services:
6869
ClickHouse","logSourceId":"Logs","sessionSourceId":"Sessions","metricSourceId":"Metrics"},{"from":{"databaseName":"default","tableName":""},"kind":"metric","timestampValueExpression":"TimeUnix","name":"Metrics","resourceAttributesExpression":"ResourceAttributes","metricTables":{"gauge":"otel_metrics_gauge","histogram":"otel_metrics_histogram","sum":"otel_metrics_sum","_id":"682586a8b1f81924e628e808","id":"682586a8b1f81924e628e808"},"connection":"Local
6970
ClickHouse","logSourceId":"Logs","traceSourceId":"Traces","sessionSourceId":"Sessions"},{"from":{"databaseName":"default","tableName":"hyperdx_sessions"},"kind":"session","timestampValueExpression":"TimestampTime","name":"Sessions","displayedTimestampValueExpression":"Timestamp","implicitColumnExpression":"Body","serviceNameExpression":"ServiceName","bodyExpression":"Body","eventAttributesExpression":"LogAttributes","resourceAttributesExpression":"ResourceAttributes","defaultTableSelectExpression":"Timestamp,ServiceName,SeverityText,Body","severityTextExpression":"SeverityText","traceIdExpression":"TraceId","spanIdExpression":"SpanId","connection":"Local
7071
ClickHouse","logSourceId":"Logs","traceSourceId":"Traces","metricSourceId":"Metrics"}]'
71-
OPAMP_PORT: 4320
7272
networks:
7373
- internal
7474
depends_on:

docker/hyperdx/entry.prod.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

33
export FRONTEND_URL="${FRONTEND_URL:-${HYPERDX_APP_URL:-http://localhost}:${HYPERDX_APP_PORT:-8080}}"
4+
export OPAMP_PORT=${HYPERDX_OPAMP_PORT:-4320}
45

56
# Set to "REQUIRED_AUTH" to enforce API authentication.
67
# ⚠️ Do not change this value !!!!

0 commit comments

Comments
 (0)