Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/mamonsu-tests-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- docker_os: 'ubuntu:24.04'
pg_version: '16'
zabbix_version: '6.4.13'
- docker_os: 'ubuntu:24.04'
pg_version: '18'
zabbix_version: '6.4.13'
exclude:
- docker_os: 'centos:8'
pg_version: '12'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mamonsu-tests-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- docker_os: 'ubuntu:24.04'
pg_version: '16'
zabbix_version: '6.4.13'
- docker_os: 'ubuntu:24.04'
pg_version: '18'
zabbix_version: '6.4.13'
exclude:
# excludes PG 15, 16 on CentOS
- docker_os: 'centos:7'
Expand Down
222 changes: 222 additions & 0 deletions documentation/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2374,6 +2374,69 @@ Default config:

*Buffers Written During Checkpoints* maps `buffers_written`.

- **Done Checkpoints**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Checkpoints: Done (in hour)</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.checkpoint[count_done]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Speed Per Second</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*Done Checkpoints* maps `num_done`.

- **SLRU Written**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Checkpoints: SLRU Written (in hour)</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.checkpoint[slru_written]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Speed Per Second</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*SLRU Written* maps `slru_written`.

### Graphs

Expand Down Expand Up @@ -2920,6 +2983,70 @@ Default config:

*Checksum Failures* maps `checksum_failures`.

- **Parallel Workers To Launch**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Instance: Parallel Workers To Launch</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.parallel[instance_to_launch]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Simple Change</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*Parallel Workers To Launch* maps `parallel_workers_to_launch`.

- **Parallel Workers Launched**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Instance: Parallel Workers Launched</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.parallel[instance_launched]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Simple Change</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*Parallel Workers Launched* maps `parallel_workers_launched`.

### Graphs
<table>
<tr>
Expand Down Expand Up @@ -4001,6 +4128,37 @@ Default config:

*Amount of WAL Records* maps `wal_records`.

- **WAL Buffers Full**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Statements: WAL Buffers Full</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.stat[wal_buffers_full]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Simple Change</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*WAL Buffers Full* maps `wal_buffers_full`.

- **Dirty Bytes**

Expand Down Expand Up @@ -4298,6 +4456,70 @@ Default config:

*pg_stat_statements.max Exceeding Count* maps `dealloc`.

- **Parallel Workers To Launch**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Statements: Parallel Workers To Launch</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.parallel[statements_to_launch]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Simple Change</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*Parallel Workers To Launch* maps `parallel_workers_to_launch`.

- **Parallel Workers Launched**

Zabbix item:
<table>
<tr>
<th>Name</th>
<td>PostgreSQL Statements: Parallel Workers Launched</td>
</tr>
<tr>
<th>Key</th>
<td>pgsql.parallel[statements_launched]</td>
</tr>
<tr>
<th>Type</th>
<td>Numeric (float)</td>
</tr>
<tr>
<th>Units</th>
<td></td>
</tr>
<tr>
<th>Delta</th>
<td>Simple Change</td>
</tr>
<tr>
<th>Supported Version</th>
<td>18+</td>
</tr>
</table>

*Parallel Workers Launched* maps `parallel_workers_launched`.

### Graphs

<table>
Expand Down
1 change: 1 addition & 0 deletions github-actions-tests/metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ for metric in $(cat ${METRICS_FILE}); do
GREP=$( mamonsu agent metric-get ${metric} | grep "pgsql\|sys\|mamonsu" )
if [ -z "$GREP" ]; then
echo "---> ERROR: Cannot found metric $metric"
mamonsu agent metric-list
exit 11
fi
done
Expand Down
Loading