Skip to content

Commit

Permalink
Pass otel collector endpoint env var to orchestrator (#5711)
Browse files Browse the repository at this point in the history
Co-authored-by: Kostiantyn Nemchenko <kostiantyn.nemchenko@gmail.com>
Co-authored-by: perangel <perangel@gmail.com>
  • Loading branch information
3 people committed Apr 17, 2023
1 parent a4434a0 commit 93cd829
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class OrchestratorConstants {
EnvConfigs.DD_AGENT_HOST,
EnvConfigs.DD_DOGSTATSD_PORT,
EnvConfigs.METRIC_CLIENT,
EnvConfigs.OTEL_COLLECTOR_ENDPOINT,
LOG_LEVEL,
LogClientSingleton.GCS_LOG_BUCKET,
LogClientSingleton.GOOGLE_APPLICATION_CREDENTIALS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ private Map<String, String> getWorkerMetadata() {
.put(EnvConfigs.SOCAT_KUBE_CPU_REQUEST, configs.getSocatSidecarKubeCpuRequest())
.put(EnvConfigs.LAUNCHDARKLY_KEY, configs.getLaunchDarklyKey())
.put(EnvConfigs.FEATURE_FLAG_CLIENT, configs.getFeatureFlagClient())
.put(EnvConfigs.OTEL_COLLECTOR_ENDPOINT, configs.getOtelCollectorEndpoint())
.build());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class AirbyteIntegrationLauncherTest {
.put(EnvConfigs.SOCAT_KUBE_CPU_REQUEST, CONFIGS.getSocatSidecarKubeCpuRequest())
.put(EnvConfigs.LAUNCHDARKLY_KEY, CONFIGS.getLaunchDarklyKey())
.put(EnvConfigs.FEATURE_FLAG_CLIENT, CONFIGS.getFeatureFlagClient())
.put(EnvConfigs.OTEL_COLLECTOR_ENDPOINT, CONFIGS.getOtelCollectorEndpoint())
.build());

private WorkerConfigs workerConfigs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public class EnvConfigs implements Configs {
private static final String MAX_DAYS_OF_ONLY_FAILED_JOBS_BEFORE_CONNECTION_DISABLE = "MAX_DAYS_OF_ONLY_FAILED_JOBS_BEFORE_CONNECTION_DISABLE";

public static final String METRIC_CLIENT = "METRIC_CLIENT";
private static final String OTEL_COLLECTOR_ENDPOINT = "OTEL_COLLECTOR_ENDPOINT";
public static final String OTEL_COLLECTOR_ENDPOINT = "OTEL_COLLECTOR_ENDPOINT";

public static final String REMOTE_CONNECTOR_CATALOG_URL = "REMOTE_CONNECTOR_CATALOG_URL";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public ContainerOrchestratorConfig kubernetesContainerOrchestratorConfig(
final Configs configs = new EnvConfigs();
environmentVariables.put(EnvConfigs.FEATURE_FLAG_CLIENT, configs.getFeatureFlagClient());
environmentVariables.put(EnvConfigs.LAUNCHDARKLY_KEY, configs.getLaunchDarklyKey());
environmentVariables.put(EnvConfigs.OTEL_COLLECTOR_ENDPOINT, configs.getOtelCollectorEndpoint());
environmentVariables.put(EnvConfigs.SOCAT_KUBE_CPU_LIMIT, configs.getSocatSidecarKubeCpuLimit());
environmentVariables.put(EnvConfigs.SOCAT_KUBE_CPU_REQUEST, configs.getSocatSidecarKubeCpuRequest());

Expand Down

0 comments on commit 93cd829

Please sign in to comment.