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

Adds protocol class option to act as a full graphite replacement. #19

Merged

Conversation

nicholaskuechler
Copy link
Contributor

@nicholaskuechler nicholaskuechler commented Jun 28, 2016

Currently, blueflood-carbon-forwarder can only receive pickle metrics, which means you have to have carbon-relay (or something similar) relaying metrics to blueflood-carbon-forwarder via pickled data.

With this PR, we will have the option to choose between received pickled metrics and receiving raw text metrics. The raw text metrics are what graphite itself is receiving.

This means I won't need to run the intermediate graphite node in order to get metrics from hosts via diamond, scripts, etc. -- I can now send directly from diamond to blueflood via blueflood-carbon-forwarder when running with the MetricLineReceiver protocol (rather than pickled protocol).

if options['protocol'] == "MetricPickleReceiver":
protocol_cls = MetricPickleReceiver
elif options['protocol'] == "MetricLineReceiver":
protocol_cls = MetricLineReceiver
Copy link
Contributor

Choose a reason for hiding this comment

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

where's MetricLineReceiver defined? Is it part of some library?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh nevermind, it's part of protocol.py where MetricPickleReceiver is also defined.

@shintasmith
Copy link
Contributor

looks good to me

@VinnyQ
Copy link
Contributor

VinnyQ commented Jun 28, 2016

👍 lgtm.

@VinnyQ VinnyQ merged commit 81de0e0 into rax-maas:master Jun 28, 2016
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

3 participants