Skip to content

Commit

Permalink
Adjust newrelic tag
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Dec 8, 2023
1 parent 7b0232f commit 9ef2467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# - extract S3 bucket params from a bound service in VCAP_SERVICES and set env vars
# - Save user/password for HTTP auth to a file for nginx basic auth.

export NEW_RELIC_LICENSE_KEY="$(echo "$VCAP_SERVICES" | jq --raw-output '."user-provided" | .[] | select(.tags[] | contains("newrelic")) | .credentials.NEW_RELIC_LICENSE_KEY')"
export NEW_RELIC_LOGS_ENDPOINT="$(echo "$VCAP_SERVICES" | jq --raw-output '."user-provided" | .[] | select(.tags[] | contains("newrelic")) | .credentials.NEW_RELIC_LOGS_ENDPOINT')"
export NEW_RELIC_LICENSE_KEY="$(echo "$VCAP_SERVICES" | jq --raw-output '."user-provided" | .[] | select(.tags[] | contains("newrelic-creds")) | .credentials.NEW_RELIC_LICENSE_KEY')"
export NEW_RELIC_LOGS_ENDPOINT="$(echo "$VCAP_SERVICES" | jq --raw-output '."user-provided" | .[] | select(.tags[] | contains("newrelic-creds")) | .credentials.NEW_RELIC_LOGS_ENDPOINT')"

export BUCKET_NAME="$(echo "$VCAP_SERVICES" | jq --raw-output '."s3" | .[] | select(.tags[] | contains("logshipper-s3")) | .credentials.bucket')"
export AWS_DEFAULT_REGION="$(echo "$VCAP_SERVICES" | jq --raw-output '."s3" | .[] | select(.tags[] | contains("logshipper-s3")) | .credentials.region')"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ All of the following steps take place in the same cf space where the logshipper

Commands in .profile look for a specific tag in relation to the service. The names of the specific services can be unique, without impacting the `.profile`.
Current Supported Tags:
- The "newrelic-creds" user provided service = `newrelic`
- The "newrelic-creds" user provided service = `newrelic-creds`
- The "log-storage" s3 bucket = `logshipper-s3`
- The "cg-logshipper-creds" user provided service = `logshipper-creds`

Expand Down

0 comments on commit 9ef2467

Please sign in to comment.