@cryptotaxi247 / netdata-1 / commits / 5b5eac5ed

add PgBouncer charts description and icon to dashboard info (#13493)

Co-authored-by: thiagoftsm <thiagoftsm@gmail.com>

Ilya Mashchenko committed Aug 8, 2022 at 16:16 UTC 5b5eac5edb17362f152e5de95e2b5713165ba16a
1 file changed +47
web/gui/dashboard_info.js
+47
@@ -339,6 +339,12 @@ netdataDashboard.menu = {
339 info: 'Performance metrics for <b>PostgreSQL</b>, the open source object-relational database management system (ORDBMS).'
340 },
341
342 + 'pgbouncer': {
343 + title: 'PgBouncer',
344 + icon: '<i class="fas fa-exchange-alt"></i>',
345 + info: 'Performance metrics for PgBouncer, an open source connection pooler for PostgreSQL.'
346 + },
347 +
348 'redis': {
349 title: 'Redis',
350 icon: '<i class="fas fa-database"></i>',
@@ -3985,6 +3991,47 @@ netdataDashboard.context = {
3991 info: 'Actual on-disk usage of the database\'s data directory and any associated tablespaces.'
3992 },
3993
3994 + // ------------------------------------------------------------------------
3995 + // PgBouncer
3996 + 'pgbouncer.client_connections_utilization': {
3997 + info: 'Client connections in use as percentage of <i>max_client_conn</i> (default 100).'
3998 + },
3999 + 'pgbouncer.db_client_connections': {
4000 + info: '<p>Client connections in different states.</p><p><b>Active</b> - linked to server connection and can process queries. <b>Waiting</b> - have sent queries but have not yet got a server connection. <b>CancelReq</b> - have not forwarded query cancellations to the server yet.</p>'
4001 + },
4002 + 'pgbouncer.db_server_connections': {
4003 + info: '<p>Server connections in different states.</p><p><b>Active</b> - linked to a client. <b>Idle</b> - unused and immediately usable for client queries. <b>Used</b> - have been idle for more than <i>server_check_delay</i>, so they need <i>server_check_query</i> to run on them before they can be used again. <b>Tested</b> - currently running either <i>server_reset_query</i> or <i>server_check_query</i>. <b>Login</b> - currently in the process of logging in.</p>'
4004 + },
4005 + 'pgbouncer.db_server_connections_utilization': {
4006 + info: 'Server connections in use as percentage of <i>max_db_connections</i> (default 0 - unlimited). This considers the PgBouncer database that the client has connected to, not the PostgreSQL database of the outgoing connection.'
4007 + },
4008 + 'pgbouncer.db_clients_wait_time': {
4009 + info: 'Time spent by clients waiting for a server connection. This shows if the decrease in database performance from the client\'s point of view was due to exhaustion of the corresponding PgBouncer pool.'
4010 + },
4011 + 'pgbouncer.db_client_max_wait_time': {
4012 + info: 'Waiting time for the first (oldest) client in the queue. If this starts increasing, then the current pool of servers does not handle requests quickly enough.'
4013 + },
4014 + 'pgbouncer.db_transactions': {
4015 + info: 'SQL transactions pooled (proxied) by pgbouncer.'
4016 + },
4017 + 'pgbouncer.db_transactions_time': {
4018 + info: 'Time spent by pgbouncer when connected to PostgreSQL in a transaction, either idle in transaction or executing queries.'
4019 + },
4020 + 'pgbouncer.db_transaction_avg_time': {
4021 + info: 'Average transaction duration.'
4022 + },
4023 + 'pgbouncer.db_queries': {
4024 + info: 'SQL queries pooled (proxied) by pgbouncer.'
4025 + },
4026 + 'pgbouncer.db_queries_time': {
4027 + info: 'Time spent by pgbouncer when actively connected to PostgreSQL, executing queries.'
4028 + },
4029 + 'pgbouncer.db_query_avg_time': {
4030 + info: 'Average query duration.'
4031 + },
4032 + 'pgbouncer.db_network_io': {
4033 + info: '<p>Network traffic received and sent by pgbouncer.</p><p><b>Received</b> - received from clients. <b>Sent</b> - sent to servers.</p>'
4034 + },
4035
4036 // ------------------------------------------------------------------------
4037 // APACHE