diff --git a/authzed-dedicated-metrics/otel-collector/env-vars.sh b/authzed-dedicated-metrics/otel-collector/env-vars.sh index 844fa21..45affbc 100644 --- a/authzed-dedicated-metrics/otel-collector/env-vars.sh +++ b/authzed-dedicated-metrics/otel-collector/env-vars.sh @@ -1,3 +1,4 @@ +export AUTHZED_DEDICATED_HOST='' export PROMETHEUS_USERNAME='' export PROMETHEUS_PASSWORD='' export OTEL_EXPORTER_OTLP_ENDPOINT="https://:443" diff --git a/authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml b/authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml index af386f2..0af03df 100644 --- a/authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml +++ b/authzed-dedicated-metrics/otel-collector/otel-collector-config.yaml @@ -7,7 +7,7 @@ receivers: metrics_path: "/api/v1alpha/metrics" scrape_interval: "15s" static_configs: - - targets: ["app.admin.demo.aws.authzed.net"] + - targets: ["${AUTHZED_DEDICATED_HOST}"] basic_auth: username: ${PROMETHEUS_USERNAME} # yamllint disable-line rule:quoted-strings password: ${PROMETHEUS_PASSWORD} # yamllint disable-line rule:quoted-strings