Configures the settings of the New Relic notifier.
Synopsis
asadmin [asadmin-options] set-newrelic-notifier-configuration [--help]
[--target target]
[--enabled={false|true}]
[--dynamic={false|true}]
[--filter={INFO|WARNING|SEVERE}]
[--accountId accountId]
[--key key]
Description
This command can be used to configure the behaviour of the New Relic notifier in Payara Server.
|
This command is available as long as the New Relic notifier’s core module is installed in the server. This notifier’s extension is installed by default on Payara Server Enterprise. |
Options
- asadmin-options
-
Options for the
asadminutility. For information about these options, see theasadminhelp page. --help-?-
Displays the help text for the subcommand.
--target-
This option helps specify the target on which you are configuring the New Relic notifier. Valid values are:
server-
Applies to the default server instance. This is the default value.
- cluster_name
-
Applies to every server instance in the cluster.
- instance_name
-
Applies to a specified sever instance.
--enabled-
Defaults to
false. Enables or disables the log notifier --dynamic-
Defaults to
false. When set totrue, applies the changes without a server restart.Otherwise, a restart is required.
--filter-
Defaults to
WARNING. The notifier only responds to events at or above this level. (INFO, WARNING, SEVERE) --accountId-
Defines the New Relic account Id.
--key-
Defines the license key to be used by the notifier.
Examples
Example 1 Enable the New Relic and set its license and account configuration
asadmin set-newrelic-notifier-configuration --dynamic=true --enabled=true --accountId=1658989 --key=b5815wdxj6lF_tmMBljQa5y1603JTiLh