PATROL Agent configuration variables
Agent configuration variables are the means by which the characteristics of a PATROL Agent are defined. To configure the Google Cloud Platform project for monitoring by using PATROL Configuration Manager, add the following set of agent configuration variables, and apply it on the PATROL Agent that runs PATROL for Google Cloud Compute.
Directory path and variable | Description | Example |
---|---|---|
/GCP/java_home | Set this variable to the directory path of the Java Runtime Environment. | "/GCP/java_home" = { REPLACE = "<JAVA_HOME directory path>" } |
/GCP/Projects/<project name>/ProjectID | Indicates the project id of the Google Cloud Platform project. | "/GCP/Projects/<project-id>/ProjectID" = { REPLACE = "<project-id>" } |
/GCP/Projects/<project name>/KeyPath | Indicates the Service Account JSON key file name of the project. The file must be present at <PATROL_HOME>/gcc/key location. | "/GCP/Projects/<project-id>/KeyPath" = { REPLACE = "<service-account-key>.json" } |
/GCP/Projects/<project name>/EnabledServices | Contains a comma separated list of application class names that you want to monitor. [GCC_GCE for compute engine] | "/GCP/Projects/<project-id>/EnabledServices" = { REPLACE = "GCP_GCE" } |
/GCP/Projects/<project name>/ZoneFilter | Set this variable to filter zones. Enter a regular expression matching one or more entities. The format is <regular-expression>\a<includeflag>
| "/GCP/Projects/<project-id>/ZoneFilter" = { REPLACE = ".*\a1" } |
/GCP/Projects/<project name>/ComputeFilter | Set this variable to filter Compute Engine VM instances. Enter a regular expression matching one or more entities. The format is <regular-expression>\a<includeflag>
Example:
| "/GCP/Projects/<project-id>/ComputeFilter" = { REPLACE = ".*\a1" } |
/GCP/DeviceMapping | Indicates how the Compute VM instances are seen on the TrueSight console. If this option is selected, the KM creates a device for each VM instance in the TrueSight console.
Note: If you modify this field, restart the PATROL Agent to apply the changes. | "/GCP/DeviceMapping" = { REPLACE = "External" } |
/GCP/Projects/<project name>/DEBUG | Set this variable to enable or disable debug. Valid values:
| "/GCP/Projects/<project-id>/DEBUG" = { REPLACE = "0" } |
/GCP/Projects/<project name>/LogLevel | Indicates the level at which the log files are generated.
FINEST level logs each debug log record. Note: If debug is disabled, the log file contains only warning level log records. | "/GCP/Projects/<project-id>/LogLevel" = { REPLACE = "FINE" } |
/GCP/Projects/<project name>/javaOpts | Indicates the additional Java Virtual Machine arguments for the Java collector. | "/GCP/Projects/<project-id>/javaOpts" = { REPLACE = "-Xmx512M" } |