-
Notifications
You must be signed in to change notification settings - Fork 813
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
Conversation
f569f5d
to
67c519f
Compare
@remh Any update for this one? |
This one is assigned to me on trello, so I guess I'll take it. |
|
||
class ShouldRestartException(Exception): pass | ||
|
||
class PgBouncer(AgentCheck): |
There was a problem hiding this comment.
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).
c1d8777
to
c99437b
Compare
Thanks @LeoCavaille |
|
||
except Exception: | ||
status = AgentCheck.CRITICAL | ||
self.service_check('pgbouncer.can_connect', status, tags=service_check_tags) |
There was a problem hiding this comment.
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.
39a0eb5
to
c79b63e
Compare
@LeoCavaille This one is ready to go. Let me know if there is something else to update. |
c79b63e
to
fa12041
Compare
- 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
fa12041
to
60da101
Compare
Thanks @DorianZaccaria for your work on this one. |
Add pgbouncer check and tests
YAY! |
No description provided.