Skip to content

Add environment variable to disable statsd metric collection#589

Merged
therve merged 7 commits intoDataDog:masterfrom
li-clutter-org:daniel/disable-statsd-env
Aug 6, 2020
Merged

Add environment variable to disable statsd metric collection#589
therve merged 7 commits intoDataDog:masterfrom
li-clutter-org:daniel/disable-statsd-env

Conversation

@dgzlopes
Copy link
Copy Markdown
Contributor

@dgzlopes dgzlopes commented Jul 15, 2020

What does this PR do?

Closes #576

Adds an environment variable to disable statsd metric collection in certain cases (e.g development).

Description of the Change

Added an environment variable called DD_DOGSTATSD_ENABLE that is set as True by default.

Release Notes

Should be backward compatible.

Signed-off-by: Daniel González Lopes <danielgonzalezlopes@gmail.com>
@dgzlopes dgzlopes requested a review from a team as a code owner July 15, 2020 10:32
@zippolyte zippolyte requested a review from a team July 15, 2020 10:38
@zippolyte zippolyte added changelog/Added Added features results into a minor version bump resource/dogstatsd labels Jul 15, 2020
@dgzlopes dgzlopes changed the title Add environment to disable statsd metric collection Add environment variable to disable statsd metric collection Jul 15, 2020
dgzlopes and others added 2 commits July 15, 2020 12:54
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
@dgzlopes
Copy link
Copy Markdown
Contributor Author

dgzlopes commented Jul 15, 2020

Thanks for the quick review!

@dgzlopes
Copy link
Copy Markdown
Contributor Author

Is there anything more I can do? I would love to start using this feature :)

dgzlopes and others added 2 commits July 17, 2020 11:15
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
@dgzlopes
Copy link
Copy Markdown
Contributor Author

I completely forgot about changing it on the rest of the code 😅

Signed-off-by: Daniel González Lopes <danielgonzalezlopes@gmail.com>
@dgzlopes
Copy link
Copy Markdown
Contributor Author

Removed some whitespace too (was making the CI fail).

@jirikuncar
Copy link
Copy Markdown
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@dgzlopes
Copy link
Copy Markdown
Contributor Author

Hey @jirikuncar. The PR is missing something? Can I help in any way?

@therve therve merged commit 8ef25b7 into DataDog:master Aug 6, 2020
@wilhelmklopp
Copy link
Copy Markdown

Exciting stuff!

Thanks for building and shipping this ❤️

@dgzlopes dgzlopes deleted the daniel/disable-statsd-env branch August 6, 2020 14:56
@dgzlopes
Copy link
Copy Markdown
Contributor Author

Hey @therve, when it's the next release planned? I would love to start using this feature :)

@peterdeme
Copy link
Copy Markdown

When is this getting released?

@therve
Copy link
Copy Markdown
Contributor

therve commented Aug 21, 2020

We'll schedule a release for next week, thanks for your patience.

@soulshake
Copy link
Copy Markdown

Added an environment variable called DD_DOGSTATSD_ENABLE that is set as True by default.

For anyone stumbling across this via Google, the envvar is DD_DOGSTATSD_DISABLE, not DD_DOGSTATSD_ENABLE. ref

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/Added Added features results into a minor version bump resource/dogstatsd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Environment variable to disable statsd in development

7 participants