Skip to content

Commit

Permalink
docs(perf-alert): functional description
Browse files Browse the repository at this point in the history
  • Loading branch information
b-Nollet committed Mar 5, 2025
1 parent 39613ff commit 4e1c1c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/xo-server-perf-alert/.USAGE.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
Like all xo-server plugins, it can be configured directly via
the web interface, see [the plugin documentation](https://xen-orchestra.com/docs/plugins.html).

Monitors can be defined in the plugin configuration. These can monitor the storage usage of your SRs, the CPU usage or memory usage of your hosts and VMs.

A separate alarm is created for each monitored element. This alarm will be raised when an element exceeds the defined threshold (on average during the last minute), and it will be lowered when it falls back below the threshold. An email alert is sent in both of those cases, and also if a problem is encountered when trying to access the stats of a monitored element.

To ensure that each alert email is only sent once, the boolean state of each alarm is stored with an ID, e.g. `host|memoryUsage|40|803c2676-c309-721e-7123-e6c3de854c32` is the ID corresponding to the alarm that is raised when host `803c2676-c309-721e-7123-e6c3de854c32` exceeds 40% memory usage.

You can use the "Test plugin" option to receive an email containing the list of the monitors you have configured, and the status of the elements monitored.
8 changes: 8 additions & 0 deletions packages/xo-server-perf-alert/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
Like all xo-server plugins, it can be configured directly via
the web interface, see [the plugin documentation](https://xen-orchestra.com/docs/plugins.html).

Monitors can be defined in the plugin configuration. These can monitor the storage usage of your SRs, the CPU usage or memory usage of your hosts and VMs.

A separate alarm is created for each monitored element. This alarm will be raised when an element exceeds the defined threshold (on average during the last minute), and it will be lowered when it falls back below the threshold. An email alert is sent in both of those cases, and also if a problem is encountered when trying to access the stats of a monitored element.

To ensure that each alert email is only sent once, the boolean state of each alarm is stored with an ID, e.g. `host|memoryUsage|40|803c2676-c309-721e-7123-e6c3de854c32` is the ID corresponding to the alarm that is raised when host `803c2676-c309-721e-7123-e6c3de854c32` exceeds 40% memory usage.

You can use the "Test plugin" option to receive an email containing the list of the monitors you have configured, and the status of the elements monitored.

## Contributions

Contributions are _very_ welcomed, either on the documentation or on
Expand Down

0 comments on commit 4e1c1c8

Please sign in to comment.