Skip to content

Commit

Permalink
Merge pull request collectd#4190 from octo/6/swap
Browse files Browse the repository at this point in the history
 [collectd 6] Swap plugin: Migrate to collectd 6 data structures.
  • Loading branch information
octo committed Jan 26, 2024
2 parents 18b7775 + b26bf15 commit 08a2a01
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 127 deletions.
6 changes: 3 additions & 3 deletions src/collectd.conf.in
Expand Up @@ -1748,10 +1748,10 @@

#<Plugin swap>
# ReportByDevice false
# ReportBytes true
# ValuesAbsolute true
# ValuesPercentage false
# ReportUsage true
# ReportUtilization false
# ReportIO true
# ReportBytes false
#</Plugin>

#<Plugin sysevent>
Expand Down
14 changes: 8 additions & 6 deletions src/collectd.conf.pod
Expand Up @@ -9333,18 +9333,20 @@ This option is only available if the I<Swap plugin> can read C</proc/swaps>

=item B<ReportBytes> B<false>|B<true>

When enabled, the I<swap I/O> is reported in bytes. When disabled, the default,
I<swap I/O> is reported in pages. This option is available under Linux only.
When enabled, the I<swap I/O> is reported in bytes. When disabled, I<swap I/O>
is reported in pages. Defaults to B<false>. This option is available under
Linux and NetBSD only.

=item B<ValuesAbsolute> B<true>|B<false>

=item B<ReportUsage> B<true>|B<false>

Enables or disables reporting of absolute swap metrics, i.e. number of I<bytes>
available and used. Defaults to B<true>.

=item B<ValuesPercentage> B<false>|B<true>
=item B<ReportUtilization> B<false>|B<true>

Enables or disables reporting of relative swap metrics, i.e. I<percent>
available and free. Defaults to B<false>.
Enables or disables reporting of relative swap metrics, i.e. the ratio of used
and free swap space. Defaults to B<false>.

This is useful for deploying I<collectd> in a heterogeneous environment, where
swap sizes differ and you want to specify generic thresholds or similar.
Expand Down

0 comments on commit 08a2a01

Please sign in to comment.