Set Global Value

From: "Silvera, Ignacio" <ignacio(dot)silvera(at)atos(dot)net>
To: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: Set Global Value
Date: 2017-09-21 15:33:50
Message-ID: 439d552d-5c7c-c6a9-64ed-e86be6b8a82f@atos.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi! How are you? I'm new on pgAdmin4.

I need to set the refresh of Dashboards globally to all users. We need
to set all the variables (I/O statistics, sessions statistics, etc) on
60 seconds to all users permamnent, and do not permit to modifiy it.

We installed pgAdmin4 following the next link:
http://yallalabs.com/linux/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu-16-04/

I found the code on
/opt/pgAdmin4/.pgadmin4/lib/python2.7/site-packages/pgadmin4/pgadmin/dashboard/__init__.py
and the following code:

self.session_stats_refresh = self.dashboard_preference.register(
'dashboards', 'session_stats_refresh',
gettext("Session statistics refresh rate"), 'integer',
1, min_val=1, max_val=999999,
category_label=gettext('Graphs'),
help_str=gettext('The number of seconds between graph
samples.')
)

self.session_stats_refresh = self.dashboard_preference.register(
'dashboards', 'tps_stats_refresh',
gettext("Transaction throughput refresh rate"), 'integer',
1, min_val=1, max_val=999999,
category_label=gettext('Graphs'),
help_str=gettext('The number of seconds between graph
samples.')
)

self.session_stats_refresh = self.dashboard_preference.register(
'dashboards', 'ti_stats_refresh',
gettext("Tuples in refresh rate"), 'integer',
1, min_val=1, max_val=999999,
category_label=gettext('Graphs'),
help_str=gettext('The number of seconds between graph
samples.')
)

self.session_stats_refresh = self.dashboard_preference.register(
'dashboards', 'to_stats_refresh',
gettext("Tuples out refresh rate"), 'integer',
1, min_val=1, max_val=999999,
category_label=gettext('Graphs'),
help_str=gettext('The number of seconds between graph
samples.')
)

self.session_stats_refresh = self.dashboard_preference.register(
'dashboards', 'bio_stats_refresh',
gettext("Block I/O statistics refresh rate"), 'integer',
1, min_val=1, max_val=999999,
category_label=gettext('Graphs'),
help_str=gettext('The number of seconds between graph
samples.')
)

Thanks in advance!

Regards

--

blue_strip

*Ignacio Silvera*

B&PS (Business & Platform Solutions) – Atos Uruguay

Tel: +598 24871169, int 102

ignacio(dot)silvera(at)atos(dot)net

Luis A. de Herrera 2802

Montevideo, Uruguay

Atos.net

atos_logotype

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it. As
its integrity cannot be secured on the Internet, the Atos group
liability cannot be triggered for the message content. Although the
sender endeavors to maintain a computer virus-free network, the sender
does not warrant that this transmission is virus-free and will not be
liable for any damages resulting from any virus transmitted.

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Surinder Kumar 2017-09-21 16:15:18 Re: v2.0-rc1 not starting, runtime not building
Previous Message Hoobajoob 2017-09-19 21:14:15 Re: No queries will run