Skip to content

Commit 8a5ed27

Browse files
committed
cicd: decreased interval parameter
1 parent 9b0a2e5 commit 8a5ed27

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed

github-actions-tests/metrics.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ END
5656
# pg_stat_statements preps
5757
sudo -u postgres ${PG_PATH}psql -d mamonsu_test_db -c "CREATE EXTENSION pg_stat_statements;"
5858

59+
# wait few intervals to get all possible metrics
60+
sleep 50
61+
5962
# read metric for specific version
6063
while read metric; do
6164
GREP=$( mamonsu agent metric-get ${metric} | grep "pgsql\|sys\|mamonsu" )

github-actions-tests/sources/agent_3.4.0.conf

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -79,87 +79,87 @@ format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
7979

8080
[health]
8181
max_memory_usage = 41943040
82-
interval = 60
82+
interval = 15
8383

8484
[bgwriter]
85-
interval = 60
85+
interval = 15
8686

8787
[connections]
8888
percent_connections_tr = 90
89-
interval = 60
89+
interval = 15
9090

9191
[databases]
9292
bloat_scale = 0.2
9393
min_rows = 50
94-
interval = 300
94+
interval = 15
9595

9696
[pghealth]
9797
uptime = 600
9898
cache = 80
99-
interval = 60
99+
interval = 15
100100

101101
[instance]
102-
interval = 60
102+
interval = 15
103103

104104
[xlog]
105105
lag_more_than_in_sec = 300
106-
interval = 60
106+
interval = 15
107107

108108
[pgstatstatement]
109-
interval = 60
109+
interval = 15
110110

111111
[pgbuffercache]
112-
interval = 60
112+
interval = 15
113113

114114
[pgwaitsampling]
115-
interval = 60
115+
interval = 15
116116

117117
[checkpoint]
118118
max_checkpoint_by_wal_in_hour = 12
119-
interval = 300
119+
interval = 15
120120

121121
[oldest]
122122
max_xid_age = 18000000
123123
max_query_time = 18000
124-
interval = 60
124+
interval = 15
125125

126126
[pglocks]
127-
interval = 60
127+
interval = 15
128128

129129
[cfs]
130130
force_enable = False
131-
interval = 60
131+
interval = 15
132132

133133
[archivecommand]
134134
max_count_files = 2
135-
interval = 60
135+
interval = 15
136136

137137
[procstat]
138-
interval = 60
138+
interval = 15
139139

140140
[diskstats]
141-
interval = 60
141+
interval = 15
142142

143143
[disksizes]
144144
vfs_percent_free = 10
145145
vfs_inode_percent_free = 10
146-
interval = 60
146+
interval = 15
147147

148148
[memory]
149-
interval = 60
149+
interval = 15
150150

151151
[systemuptime]
152152
up_time = 300
153-
interval = 60
153+
interval = 15
154154

155155
[openfiles]
156-
interval = 60
156+
interval = 15
157157

158158
[net]
159-
interval = 60
159+
interval = 15
160160

161161
[la]
162-
interval = 60
162+
interval = 15
163163

164164
[zbxsender]
165165
interval = 10
@@ -168,7 +168,7 @@ interval = 10
168168
interval = 2
169169

170170
[agentapi]
171-
interval = 60
171+
interval = 15
172172

173173
# Get age (in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
174174
# https://www.postgresql.org/docs/current/sql-prepare-transaction.html
@@ -177,7 +177,7 @@ interval = 60
177177
# If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
178178
[preparedtransaction]
179179
max_prepared_transaction_time = 60
180-
interval = 60
180+
interval = 15
181181

182182
# Get size of backup catalogs stroring all WAL and backup files using pg_probackup
183183
# (https://github.com/postgrespro/pg_probackup)
@@ -197,7 +197,7 @@ pg_probackup_path = /usr/bin/pg_probackup-11
197197
[relationssize]
198198
enabled = True
199199
relations=postgres.pg_catalog.pg_class,mamonsu_test_db.mamonsu.config
200-
interval = 300
200+
interval = 15
201201

202202
# This plugin allows detects possible memory leaks while working with PostgreSQL using /proc/pid/status and /proc/pid/statm
203203
# We use RES and SHR difference to calculate approximate volume of private anonymous backend memory.
@@ -212,5 +212,5 @@ interval = 300
212212
# Possible values MB, GB, TB. For example 1GB
213213
[memoryleakdiagnostic]
214214
enabled = True
215-
interval = 60
215+
interval = 15
216216
private_anon_mem_threshold = 1GB

0 commit comments

Comments
 (0)