Skip to content
This repository has been archived by the owner. It is now read-only.

Fix collectd metric processing #3

Merged
merged 3 commits into from Aug 26, 2011
Merged

Conversation

@tabletcorry
Copy link
Contributor

@tabletcorry tabletcorry commented Aug 26, 2011

This pull request may not actually make sense for loggly to pull, but I will put it out there.

THIS IS NOT BACKWARDS COMPATIBLE. It will put graphs in new and interesting locations.

Basically this allows the proxy to fully understand the data that it is reading.

  • Unlike loggly:master, it can process multi-data types (like load).
    • I don't know if loggly actually uses this thing, but if they are, they are blackhole'ing a lot of data.
  • Unlike donjohnson:master it does not fail when instances are used in collectd.
    • Quite a few of the default collectd types use instances, so this change is useful.
Don Johnson and others added 3 commits Jul 9, 2011
… each metric, and types.db metric name lookups
First, we look at the system installed types.db (works on centos
package, should probably be generalized).

Later, we split up the metric name into is parts according to the
collectd data spec. The instance are split out and handled somewhat
better.

This fixes an issue where type instances will break the lookup in
the types.db file.

This also fixes an issue where metrics will be poorly named when
they appear in graphite.

CAVEAT: This makes changes that are not compatible with existing
proxy users. The graphs will be given different names.

tl:dr This breaks backwards compatability
jordansissel added a commit that referenced this pull request Aug 26, 2011
Fix collectd metric processing
@jordansissel jordansissel merged commit 4e5188c into loggly:master Aug 26, 2011
@jordansissel
Copy link
Contributor

@jordansissel jordansissel commented Aug 26, 2011

I was using it at loggly for a while, but I didn't have energy to fix how I configured graphite, so I shutdown graphite and this tool for a time. It'll be in use again soon.

As for dropping metrics, That wasn't something I noticed but should have checked for. Thanks for the patch :)

@jordansissel

This comment has been minimized.

Copy link

@jordansissel jordansissel commented on collectd-graphite-proxy.js in e64ccd1 Aug 26, 2011

I've never seen slashes in collectd names? Hmm...

This comment has been minimized.

Copy link
Owner

@tabletcorry tabletcorry replied Aug 26, 2011

That bit of the code came from @donjohnson. In the collectd PUTVAL (or command) format, slashes are used to separate the parts of the metric. Graphite uses "." for the same purpose, so it is switched there.

For reference: PUTVAL host.example.com/processes/ps_state-sleeping interval=10 1314224765:305.000000

This comment has been minimized.

Copy link

@jordansissel jordansissel replied Aug 26, 2011

Nod, will keep this code as-is until I get a chance to play with it again. Thanks :)

@jordansissel

This comment has been minimized.

Copy link

@jordansissel jordansissel commented on collectd-graphite-proxy.js in e64ccd1 Aug 26, 2011

I'll make this a flag later.

This comment has been minimized.

Copy link
Owner

@tabletcorry tabletcorry replied Aug 26, 2011

Yeah, that would be better, but I was in hack mode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.