Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to remove the dyno, dynotype and appname tags? #316

Open
langsharpe opened this issue Oct 4, 2022 · 0 comments
Open

Is it possible to remove the dyno, dynotype and appname tags? #316

langsharpe opened this issue Oct 4, 2022 · 0 comments

Comments

@langsharpe
Copy link

Is it possible for the tags section of datadog.yaml to be empty? For example, we used to remove the tags in our prerun.sh like this:

sed -i -e 's/^  - dyno:.*$/# &/' "$DATADOG_CONF"
sed -i -e 's/^  - dynotype:.*$/# &/' "$DATADOG_CONF"
sed -i -e 's/^  - appname:.*$/# &/' "$DATADOG_CONF"

Since #182, this hasn't worked because the prerun script is run before the dyno tags are added to the config file.

I tried updating our prerun script to this:

export DD_TAGS="dyno dynotype appname"

However, this just added empty tags to the generated tag list.

tags:
  - dyno:run.6433
  - dynotype:run
  - buildpackversion:dev
  - appname:fgf-heroku-drain-datadog
  - dyno
  - dynotype
  - appname

The app we run is monitoring other apps. It sets these tags itself. The default tags get in the way.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant