We get the following gauges defined by DropWizard for our
ManagedPooledDataSource (postgresql in this example). We then have monitors
on total number of connections idle+active across our cluster of EC2
Instances. This way we can alert ourselves based on certain criteria
(reaching threshold of allowed connections per configured RDS user role,
etc). For alerting we are using Datadog <https://www.datadoghq.com/> for
dashboards and metric monitors.
"io.dropwizard.db.ManagedPooledDataSource.postgresql.active": {
"value": 0
},
"io.dropwizard.db.ManagedPooledDataSource.postgresql.idle": {
"value": 4
},
"io.dropwizard.db.ManagedPooledDataSource.postgresql.size": {
"value": 4
},
"io.dropwizard.db.ManagedPooledDataSource.postgresql.waiting": {
"value": 0
},
*Trevor Mack*
*Senior Software Engineer (API)*
e: [email protected] | c: 585.563.9636 | w: trevor-mack.com
On Tue, Jul 26, 2016 at 12:31 PM, James Harvey <[email protected]> wrote:
> Thanks Trevor. Out of interest how did you achieve that?
>
> We went a slightly different way and I ended up writing a Filter and
> attaching it to the admin context for the /healthcheck url.
>
> The filter does a dump to the log of the Response body if it's a non-200
> response so at least we can see what the full stack trace is...
>
> --
> You received this message because you are subscribed to the Google Groups
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.