Skip to content

Commit

Permalink
Update Dedicated metrics example
Browse files Browse the repository at this point in the history
Use an environment variable for the target endpoint so that
customers can easily override it for their own setup.
  • Loading branch information
alecmerdler committed Aug 19, 2024
1 parent b56e4bb commit 0b52252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions authzed-dedicated-metrics/otel-collector/env-vars.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export AUTHZED_DEDICATED_HOST='<your-authzed-dashboard-url>'
export PROMETHEUS_USERNAME='<permission-system-name>'
export PROMETHEUS_PASSWORD='<permission-system-token>'
export OTEL_EXPORTER_OTLP_ENDPOINT="https://<metrics-service-url>:443"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b52252

Please sign in to comment.