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

Add Graphite output #451

Closed
wants to merge 48 commits into from
Closed

Conversation

titilambert
Copy link
Contributor

Hello !

This is a graphite output ! Useful when you want to initiate the migration to InfluxDB :)

TODO:

  • tests
  • README

@titilambert titilambert force-pushed the graphite branch 2 times, most recently from 5ffac19 to 17f9b93 Compare December 17, 2015 18:28
var sampleConfig = `
[[outputs.graphite]]
# TCP raw endpoint for your graphite instance.
servers = ["mygraphiteserver:2003"] # required
Copy link
Contributor

Choose a reason for hiding this comment

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

could you have this default to localhost:2003?

@sparrc
Copy link
Contributor

sparrc commented Dec 17, 2015

awesome, thanks @titilambert!

servers = ["mygraphiteserver:2003"] # default "localhost:2003"
# Prefix metrics name
prefix = "" # default ""
# Timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

what are the units of Timeout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seconds

Copy link
Contributor

Choose a reason for hiding this comment

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

cool, can you add two things to the comment: 1) unit of the timeout 2) what is the timeout (ie, what is the thing that will timeout)

@titilambert titilambert force-pushed the graphite branch 3 times, most recently from 815b9e9 to b96dd8c Compare December 18, 2015 03:06
@titilambert titilambert changed the title Add Graphite output [WIP] Add Graphite output Dec 18, 2015
@titilambert titilambert force-pushed the graphite branch 3 times, most recently from 4a669ea to aaf175e Compare December 20, 2015 22:04
@titilambert titilambert changed the title [WIP] Add Graphite output Add Graphite output Dec 20, 2015
@titilambert
Copy link
Contributor Author

@sparrc Hello !
I added tests and readme, I squashed all commits, I signed CLA, I think this one is ready :)

var bp []string
for _, point := range points {
// Get name
names := strings.SplitN(point.Name(), "_", 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this part? Are you just parsing out the plugin name? why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sparrc Hello !
I'm trying to find which name have to use to avoid names like myplugin_mymetricname
My use case is with the snmp plugin, I don't want something like snmp_cpu_idle, snmp_cpu_user, ...
Maybe I should add an test about that stuff ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mind if we remove that part? it won't be a problem anymore in 0.3.0, as we won't be prepending plugin names to measurement names anymore. So in 0.3.0, you would actually lose part of the field name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sparrc Cool ! Do you want I rebase the PR on 0.3.0 branch ?
BTW, do you prefer PR based on 0.3.0 branch ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, PR based off 0.3.0 branch would be helpful, thanks!

@titilambert titilambert force-pushed the graphite branch 2 times, most recently from 5c3379d to 1820238 Compare January 8, 2016 00:26
@titilambert
Copy link
Contributor Author

I close this PR to open a new one based on 0.3.0

@titilambert titilambert closed this Jan 8, 2016
@titilambert titilambert mentioned this pull request Jan 8, 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.

2 participants