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

statsd: use pystatsd pipeline to send batches #327

Merged
merged 1 commit into from
Nov 27, 2015
Merged

statsd: use pystatsd pipeline to send batches #327

merged 1 commit into from
Nov 27, 2015

Conversation

filippog
Copy link
Contributor

the pipeline feature has been introduced in https://github.com/jsocol/pystatsd
since version 2.0

the pipeline feature has been introduced in https://github.com/jsocol/pystatsd
since version 2.0
@@ -135,6 +135,8 @@ def _send(self):
statsd.Counter(prefix, self.connection).increment(
name, value)

if hasattr(statsd, 'StatsClient'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conditional to support both python-statsd and statsd, see also other comment

jaingaurav added a commit that referenced this pull request Nov 27, 2015
statsd: use pystatsd pipeline to send batches
@jaingaurav jaingaurav merged commit e005666 into python-diamond:master Nov 27, 2015
@jaingaurav
Copy link
Member

Thanks for the clarification. Perhaps in a future diamond version we can deprecate support for the older library

@filippog
Copy link
Contributor Author

yup, I can followup with PRs to change python-statsd with statsd in tox/travis/etc

wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this pull request Nov 30, 2015
use 'batch' argument to StatsdHandler to send multiple metrics per UDP packet,
see also python-diamond/Diamond#327 which will be
shipped in our internal diamond debian package

Bug: T116033
Change-Id: I9730cd2ff364f638377be42aa681ce4c32ba9efe
wmfgerrit pushed a commit to wikimedia/operations-puppet that referenced this pull request Dec 2, 2015
use 'batch' argument to StatsdHandler to send multiple metrics per UDP packet,
see also python-diamond/Diamond#327 which will be
shipped in our internal diamond debian package

Bug: T116033
Change-Id: I12e61f1f69102580301dd4c791029432c5e763b9
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

Successfully merging this pull request may close these issues.

None yet

2 participants