summaryrefslogtreecommitdiffstats
path: root/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/config.txt86
-rw-r--r--src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/databases.txt6
-rw-r--r--src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/pools.txt6
-rw-r--r--src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/stats.txt6
-rw-r--r--src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/version.txt3
5 files changed, 107 insertions, 0 deletions
diff --git a/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/config.txt b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/config.txt
new file mode 100644
index 000000000..da1aba609
--- /dev/null
+++ b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/config.txt
@@ -0,0 +1,86 @@
+ key | value | default | changeable
+---------------------------+--------------------------------------------------------+--------------------------------------------------------+------------
+ admin_users | postgres | | yes
+ application_name_add_host | 0 | 0 | yes
+ auth_file | /etc/pgbouncer/userlist.txt | | yes
+ auth_hba_file | | | yes
+ auth_query | SELECT usename, passwd FROM pg_shadow WHERE usename=$1 | SELECT usename, passwd FROM pg_shadow WHERE usename=$1 | yes
+ auth_type | md5 | md5 | yes
+ auth_user | | | yes
+ autodb_idle_timeout | 3600 | 3600 | yes
+ client_idle_timeout | 0 | 0 | yes
+ client_login_timeout | 60 | 60 | yes
+ client_tls_ca_file | | | yes
+ client_tls_cert_file | | | yes
+ client_tls_ciphers | fast | fast | yes
+ client_tls_dheparams | auto | auto | yes
+ client_tls_ecdhcurve | auto | auto | yes
+ client_tls_key_file | | | yes
+ client_tls_protocols | secure | secure | yes
+ client_tls_sslmode | disable | disable | yes
+ conffile | /etc/pgbouncer/pgbouncer.ini | | yes
+ default_pool_size | 20 | 20 | yes
+ disable_pqexec | 0 | 0 | no
+ dns_max_ttl | 15 | 15 | yes
+ dns_nxdomain_ttl | 15 | 15 | yes
+ dns_zone_check_period | 0 | 0 | yes
+ idle_transaction_timeout | 0 | 0 | yes
+ ignore_startup_parameters | extra_float_digits | | yes
+ job_name | pgbouncer | pgbouncer | no
+ listen_addr | 0.0.0.0 | | no
+ listen_backlog | 128 | 128 | no
+ listen_port | 6432 | 6432 | no
+ log_connections | 1 | 1 | yes
+ log_disconnections | 1 | 1 | yes
+ log_pooler_errors | 1 | 1 | yes
+ log_stats | 1 | 1 | yes
+ logfile | | | yes
+ max_client_conn | 100 | 100 | yes
+ max_db_connections | 0 | 0 | yes
+ max_packet_size | 2147483647 | 2147483647 | yes
+ max_user_connections | 0 | 0 | yes
+ min_pool_size | 0 | 0 | yes
+ pidfile | | | no
+ pkt_buf | 4096 | 4096 | no
+ pool_mode | session | session | yes
+ query_timeout | 0 | 0 | yes
+ query_wait_timeout | 120 | 120 | yes
+ reserve_pool_size | 0 | 0 | yes
+ reserve_pool_timeout | 5 | 5 | yes
+ resolv_conf | | | no
+ sbuf_loopcnt | 5 | 5 | yes
+ server_check_delay | 30 | 30 | yes
+ server_check_query | select 1 | select 1 | yes
+ server_connect_timeout | 15 | 15 | yes
+ server_fast_close | 0 | 0 | yes
+ server_idle_timeout | 600 | 600 | yes
+ server_lifetime | 3600 | 3600 | yes
+ server_login_retry | 15 | 15 | yes
+ server_reset_query | DISCARD ALL | DISCARD ALL | yes
+ server_reset_query_always | 0 | 0 | yes
+ server_round_robin | 0 | 0 | yes
+ server_tls_ca_file | | | yes
+ server_tls_cert_file | | | yes
+ server_tls_ciphers | fast | fast | yes
+ server_tls_key_file | | | yes
+ server_tls_protocols | secure | secure | yes
+ server_tls_sslmode | disable | disable | yes
+ so_reuseport | 0 | 0 | no
+ stats_period | 60 | 60 | yes
+ stats_users | | | yes
+ suspend_timeout | 10 | 10 | yes
+ syslog | 0 | 0 | yes
+ syslog_facility | daemon | daemon | yes
+ syslog_ident | pgbouncer | pgbouncer | yes
+ tcp_defer_accept | 1 | 1 | yes
+ tcp_keepalive | 1 | 1 | yes
+ tcp_keepcnt | 0 | 0 | yes
+ tcp_keepidle | 0 | 0 | yes
+ tcp_keepintvl | 0 | 0 | yes
+ tcp_socket_buffer | 0 | 0 | yes
+ tcp_user_timeout | 0 | 0 | yes
+ unix_socket_dir | | /tmp | no
+ unix_socket_group | | | no
+ unix_socket_mode | 511 | 0777 | no
+ user | postgres | | no
+ verbose | 0 | | yes \ No newline at end of file
diff --git a/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/databases.txt b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/databases.txt
new file mode 100644
index 000000000..9e8f14695
--- /dev/null
+++ b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/databases.txt
@@ -0,0 +1,6 @@
+ name | host | port | database | force_user | pool_size | min_pool_size | reserve_pool | pool_mode | max_connections | current_connections | paused | disabled
+-----------+-----------+------+-----------+------------+-----------+---------------+--------------+-----------+-----------------+---------------------+--------+----------
+ myprod1 | 127.0.0.1 | 5432 | myprod1 | postgres | 20 | 0 | 0 | | 0 | 20 | 0 | 0
+ myprod2 | 127.0.0.1 | 5432 | myprod2 | postgres | 20 | 0 | 0 | | 0 | 20 | 0 | 0
+ pgbouncer | | 6432 | pgbouncer | pgbouncer | 2 | 0 | 0 | statement | 0 | 0 | 0 | 0
+ postgres | 127.0.0.1 | 5432 | postgres | postgres | 20 | 0 | 0 | | 0 | 20 | 0 | 0 \ No newline at end of file
diff --git a/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/pools.txt b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/pools.txt
new file mode 100644
index 000000000..dec3326ad
--- /dev/null
+++ b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/pools.txt
@@ -0,0 +1,6 @@
+ database | user | cl_active | cl_waiting | cl_cancel_req | sv_active | sv_idle | sv_used | sv_tested | sv_login | maxwait | maxwait_us | pool_mode
+-----------+-----------+-----------+------------+---------------+-----------+---------+---------+-----------+----------+---------+------------+-----------
+ myprod1 | postgres | 15 | 0 | 0 | 15 | 5 | 0 | 0 | 0 | 0 | 0 | session
+ myprod2 | postgres | 12 | 0 | 0 | 11 | 9 | 0 | 0 | 0 | 0 | 0 | session
+ pgbouncer | pgbouncer | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | statement
+ postgres | postgres | 18 | 0 | 0 | 18 | 2 | 0 | 0 | 0 | 0 | 0 | session \ No newline at end of file
diff --git a/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/stats.txt b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/stats.txt
new file mode 100644
index 000000000..3b66fc323
--- /dev/null
+++ b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/stats.txt
@@ -0,0 +1,6 @@
+ database | total_xact_count | total_query_count | total_received | total_sent | total_xact_time | total_query_time | total_wait_time | avg_xact_count | avg_query_count | avg_recv | avg_sent | avg_xact_time | avg_query_time | avg_wait_time
+-----------+------------------+-------------------+----------------+------------+-----------------+------------------+-----------------+----------------+-----------------+----------+----------+---------------+----------------+---------------
+ myprod1 | 12683170 | 12683170 | 809093651 | 1990971542 | 7223566620 | 7223566620 | 1029555 | 900 | 900 | 57434 | 141358 | 575 | 575 | 3
+ myprod2 | 12538544 | 12538544 | 799867464 | 1968267687 | 7144226450 | 7144226450 | 993313 | 885 | 885 | 56511 | 139050 | 581 | 581 | 14
+ pgbouncer | 45 | 45 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0
+ postgres | 25328823 | 25328823 | 1615791619 | 3976053858 | 72471882827 | 72471882827 | 50439622253 | 1901 | 1901 | 121329 | 298556 | 2790 | 2790 | 3641761 \ No newline at end of file
diff --git a/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/version.txt b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/version.txt
new file mode 100644
index 000000000..fa2c806a2
--- /dev/null
+++ b/src/go/plugin/go.d/modules/pgbouncer/testdata/v1.17.0/version.txt
@@ -0,0 +1,3 @@
+ version
+------------------
+ PgBouncer 1.17.0 \ No newline at end of file