zalando / pg_view

Get a detailed, real-time view of your PostgreSQL database and system metrics
https://pypi.python.org/pypi/pg-view
Other
496 stars 49 forks source link

Add reconnect parameter for PgstatCollector #51

Closed a1exsh closed 8 years ago

a1exsh commented 8 years ago

This allows us not to die miserably on server restart, but continue to collect the other stats like memory, cpu and disk usage. On every round we will try to reconnect and will be displaying the PG stats as soon as the server is back online.

a1exsh commented 8 years ago

I'd also like to display the offline message in red color, but the logic there seems a bit too complex and not really extensible.

a1exsh commented 8 years ago

After some testing looks like the old pg_stat_activity entries are not cleaned up when the server is available again. Will fix.