Monitoring Service Asadmin Command Reference
The following is a detailed list of the administration commands that can be used to correctly configure the Monitoring Service.
Since Payara Server 5.183
set-monitoring-service-configuration
- Usage
-
asadmin> set-monitoring-service-configuration --enabled=true|false --mbeansenabled=true|false --amxenabled=true|false
- Aim
-
This command can be used to set all configuration of the Monitoring Service at once.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
Boolean |
Whether to enable or disable the service. |
N/A |
no |
|
Boolean |
Whether to enable or disable Mbean monitoring. |
N/A |
no |
|
Boolean |
Whether to enable or disable AMX on boot. |
N/A |
no |
|
String |
The name of the configuration to set the monitoring service configuration on. |
server |
no |
get-monitoring-service-configuration
- Usage
-
asadmin> get-monitoring-service-configuration
- Aim
-
This command can be used to list the configuration settings of the Monitoring Service.
set-monitoring-level
- Usage
-
asadmin> set-monitoring-level
- Aim
-
This command can be used set monitoring level of a module.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
String |
The name of the module. |
N/A |
yes |
|
String |
Allows you to change monitoring level for a module to OFF, LOW or HIGH. |
N/A |
yes |
|
String |
The name of the configuration to get the monitoring service configuration from. |
server |
no |
get-monitoring-level
- Usage
-
asadmin> get-monitoring-level
- Aim
-
This command can be used to get monitoring level of a module.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
String |
The name of the module. |
N/A |
no |
|
String |
The name of the configuration to get the monitoring service configuration from. |
server |
no |
Example
asadmin > get-monitoring-level
--module=jvm
--target=server
You can also get monitoring level for all available modules using example below:
asadmin > get-monitoring-level
--target=server
Will give an output similar to the following:
Module Monitoring Level
cloud OFF
cloud-elasticity OFF
cloud-orchestrator OFF
cloud-tenant-manager OFF
cloud-virt-assembly-service OFF
connector-connection-pool OFF
connector-service OFF
deployment OFF
ejb-container OFF
http-service LOW
jdbc-connection-pool OFF
jersey OFF
jms-service OFF
jpa OFF
jvm HIGH
orb OFF
security OFF
thread-pool OFF
transaction-service OFF
web-container OFF
web-services-container OFF
Since Payara Server 5.193
restart-monitoring
- Usage
-
asadmin> restart-monitoring
- Aim
-
This command can be used to restart monitoring levels.
It will set all modules to 'OFF' before setting them to their previous level.
This command is useful when AMX metrics 'breaks' as some users have reported setting monitoring levels to 'OFF' and back again fixes it, however doing so manually can be slow and prone to error.
Command Options
Option | Type | Description | Default | Mandatory |
---|---|---|---|---|
|
String |
The name of the configuration to get the monitoring service configuration from. |
server-config |
no |
|
String |
Enable verbose output for the current command. |
false |
no |
Example
asadmin > restart-monitoring
--target=server-config
Will give an output similar to the following:
Restarted 3 modules
You can use the verbose mode to see which modules were affected and what monitoring level they are currently set to:
asadmin > restart-monitoring
--target=server
--verbose
Will give an output similar to the following:
Module Monitoring Level
cloud HIGH
cloud-elasticity LOW
cloud-orchestrator HIGH