Plesk

monitoring: Advanced Monitoring

The monitoring utility is used for managing the data
presented by the Advanced Monitoring extension.

Note: The utility is available when the Advanced Monitoring and Grafana extensions are installed in Plesk.
The extensions are installed by default.

Usage

plesk ext monitoring <command> <operation> [options] [arguments]

Example

The following command sets the Apache & PHP-FPM memory usage threshold to 10%:

plesk ext monitoring --thresholds --set -panel-id  memory_usage__web -target sw_mem-Web:ps_rss:value -operator greater_than -type percent -value 10

Commands

Command Operation Description Example
--installation --get-status | --fix | --detect-hardware-changes Manages the Advanced Monitoring installation.

To check for changes made to the server hardware and reflect them (if any):

plesk ext monitoring --installation --detect-hardware-changes

--overview --list-panel-ids | --list-targets | --list-sections | --get-sources-map Shows the main Advanced Monitoring data: panel IDs, threshold IDs, and tab IDs.

To show the table of dependencies between panel IDs, tab IDs, and threshold IDs in the JSON format:

plesk ext monitoring --overview --get-sources-map -format json