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 pgbouncer check and tests #1391

Merged
merged 1 commit into from
Mar 5, 2015
Merged

Add pgbouncer check and tests #1391

merged 1 commit into from
Mar 5, 2015

Conversation

DorianZaccaria
Copy link
Contributor

No description provided.

@DorianZaccaria
Copy link
Contributor Author

@remh Any update for this one?

@LeoCavaille
Copy link
Member

This one is assigned to me on trello, so I guess I'll take it.

@LeoCavaille LeoCavaille assigned LeoCavaille and unassigned remh Mar 2, 2015

class ShouldRestartException(Exception): pass

class PgBouncer(AgentCheck):
Copy link
Member

Choose a reason for hiding this comment

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

nitpick, but should have 2 newlines between (import and class) and (2 classes).

@DorianZaccaria DorianZaccaria force-pushed the dorian/pgbouncer branch 2 times, most recently from c1d8777 to c99437b Compare March 2, 2015 21:02
@DorianZaccaria
Copy link
Contributor Author

Thanks @LeoCavaille

@remh remh added this to the 5.3.0 milestone Mar 2, 2015

except Exception:
status = AgentCheck.CRITICAL
self.service_check('pgbouncer.can_connect', status, tags=service_check_tags)
Copy link
Member

Choose a reason for hiding this comment

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

You can maybe pass the exception as the service check message to give an idea of what's wrong.

@DorianZaccaria DorianZaccaria force-pushed the dorian/pgbouncer branch 5 times, most recently from 39a0eb5 to c79b63e Compare March 4, 2015 17:43
@DorianZaccaria
Copy link
Contributor Author

@LeoCavaille This one is ready to go. Let me know if there is something else to update.

- Add psycopg to requirements.txt
- Add travis ci pgbouncer build
- Add pgbouncer tests
_ Add pgbouncer check and a configuration example

The metrics aggregated are the pools metrics and the stats metrics.
See http://pgbouncer.projects.pgfoundry.org/doc/usage.html for more
information
@LeoCavaille
Copy link
Member

Thanks @DorianZaccaria for your work on this one.
Merging 🎆 🎯

LeoCavaille added a commit that referenced this pull request Mar 5, 2015
@LeoCavaille LeoCavaille merged commit 4dd6b34 into master Mar 5, 2015
@LeoCavaille LeoCavaille deleted the dorian/pgbouncer branch March 5, 2015 22:39
@DorianZaccaria
Copy link
Contributor Author

YAY!

@remh remh mentioned this pull request Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants