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

Couchbase plugin #457

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

oryband
Copy link

@oryband oryband commented Oct 28, 2015

This PR introduces Couchbase support.

I took on the work of #404 , which was partially-working, and added lots of new features. Primarily:

  • Many, many more new metrics added
  • Easy to add new metrics in the future
  • Memcached buckets no longer crash the plugin
  • Bonus: pep8 + pep257 😄

This PR is split into two commits: The first is the original #404 code with the unrelated parts taken out (nagiorelic). The second is the complete re-write I did.

We at Rounds have been running this on production and it's working great.

this is a squash commit of all couchbase commits
from minodes/newrelic-plugin-agent:
- 33c9162f920cd821c6d051302b73ebb2ab27419d
  fix JSON access
- 4e0695788575805e351863384eacf4ab1af1e708
  read basicStats from all couchbase buckets
- eb58aa6391e747903f9c76fdbb622a64d75dc8c3
  basicStats now per bucket sent to newrelic
- ede17dcb152838a300f127e5acdd95269482d1ad
  add couchbase support

the original branch used in pull request #404 had a bunch
of garbage commits related to other plugins (nagiorelic).

i cleaned the unrelated stuff and squashed everything
to a single commit
@oryband
Copy link
Author

oryband commented Oct 28, 2015

name_key = 'hostname'
elif typ == 'buckets':
items = stats
name_key = 'name'

Choose a reason for hiding this comment

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

I would move this ifelse block outside of the loop as it doesn't need the loop variable

- add memcached support to couchbase plugin; added logging + pep8 + pep257
- also much easier to add/remove additional metrics in the future
- metrics are according to api reference v3.0 or v3.1
@oryband
Copy link
Author

oryband commented Oct 29, 2015

@gmr @notnmeyer mrg plz?

@oryband oryband mentioned this pull request Nov 6, 2015
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