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

[mongo] Improve messaging&tags on MongoDB replset member state events #2432

Merged
merged 2 commits into from Apr 21, 2016

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Apr 21, 2016

Rebase of #2409.

Added

  • Restore SERVICE_CHECK_NAME class variable
  • Initialize the check in TestMongoUnit:test_state_translation

Thanks again @antifuchs

antifuchs and others added 2 commits April 21, 2016 09:58
This change summarized a lot of changes that improve how leadership
election events look in the mongodb service check:

* The event title nowrefers to the explicit hostname if checking
  localhost
* The title now calls the member state by its official name and gives an
  the expanded state description in the body.
* Events are only generated if there is a previous, known, state. This
  elimilates a lot of events being generated whenever the dd-agent is
  restarted.
* Events now come with a set of tags featuring the previous and current
  states in a form that can unambiguously be queried, as well as the
  replSet in question.
@yannmh
Copy link
Member Author

yannmh commented Apr 21, 2016

Tests are passing. Let's ship 🚢 .

@yannmh yannmh merged commit 70e303c into master Apr 21, 2016
@yannmh yannmh deleted the yann/stripe-asf-mongo-leader-election-events branch April 21, 2016 14:18
@antifuchs
Copy link
Contributor

Yay, thanks for pushing this through, and sorry I missed SERVICE_CHECK_NAME!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants