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

POC: remote data collection over existing postgres connection #80

Open a1exsh opened 7 years ago

a1exsh commented 7 years ago
a1exsh commented 7 years ago

@alexeyklyukin I also think we need a separate call to install the funcs (with security definer option). Then we could grant some role like pgview permission to execute them, and then finally grant pgview to anyone we trust to run it remotely.

As for du/df: running less often makes a lot of sense, since these readings are not expected to change very quickly. Every 3-5 ticks should be reasonable. Can we then get rid of subprocesses/queues altogether?

alexeyklyukin commented 7 years ago

I'd probably supply a SQL file along the way and instruct users to install it with their tools of choice. Actually, for du/df there is another issue: it take a lot of time to return the data, so one of the "ticks" would be slower than the others. Therefore, I'd like to keep the existing multi-threaded functionality at least locally.