4.1.5 Considering the monitoring processing
It is necessary to define the monitoring processing of what activities in cloud services are to be checked as events and when the events are determined to be occurring as monitoring definitions. To define the processing, design the monitoring processing as follows. For details on the definition items, see the descriptions of the monitoring definition windows in 7. Operation.
-
Set the command line for obtaining the information on the cloud service. Design it so that the information can be output to the standard output as data in JSON format.
-
Design the JMESPath query statement to extract the data to be used for monitoring from the information acquired by the command in 1 (information to be monitored) and store the extracted data.
-
In Execution result judgment, choose whether monitoring continues or command execution ends abnormally when the command line executed in 1 ends abnormally.
-
In Passing information settings, design whether it is necessary to pass the monitoring information extracted in 2 to the subsequent job in JP1/AJS3 - Manager.
In addition to the aforementioned design, it is necessary to consider the following, taking into account job operation in JP1/AJS3.
-
Parameters to be changed dynamically
-
Monitoring information design
-
Trace information design
-
Passing information design
The following details these items.
- Organization of this subsection
(1) Parameters to be changed dynamically
Parameters that are changed dynamically may be specified for service linkage monitoring jobs to be operated. Examples of such parameters include the following.
-
Object names of storage services to be monitored
-
Bucket name of storage services to be monitored
-
Storage account name or container name of storage services to be monitored
Define these parameters in JP1/AJS3 - View jobs. Regarding the things to be specified on the side of the job, consider the settings in Variable settings.
In addition, design the authentication information used to connect to cloud services in units of job execution. Specify the authentication definition that is used during job definition in JP1/AJS3 - View.
(2) Monitoring information settings
Consider what information in the connection-destination services should be monitored. Define this monitoring information in Monitoring processing. Consider whether the JMESPath query statement can be used to extract the standard output (JSON) of the information acquisition command, as well as the result.
At this time, if numerous data items are output by the information acquisition command, there is a possibility of a decrease in the execution performance of service linkage monitoring jobs, large consumption of memory resources, or an abnormal termination of a service linkage monitoring job due to the maximum standard output size being reached. Please consider using the command line options that will output only the information necessary for monitoring.
(3) Trace information design
Trace information for service linkage monitoring jobs has the following two considerations:
First, consider which information from an information acquisition command should be logged when the command is executed at a monitoring interval. Available setting options are the executed command line and the standard error output. These settings must be considered together with the log sizes because they are output at every monitoring interval. This information is defined in Trace information settings.
Second, consider how trace information should be handled when Abnormal end occurs is selected for a job if it ends abnormally upon execution of an information acquisition command. When Monitoring continues is selected, consider the first design only. Consider and design trace information that is checked on the result details screen of JP1/AJS3 - View or JP1/AJS3 - Web Console in the event of an abnormal end of a job, or is stored in the log for troubleshooting. Define this information in Output settings for detailed execution results and Log output settings configured in Execution result judgment.
(4) Passing information design
Consider and design the passing information settings so that succeeding jobs receive and use the information obtained after the monitoring condition is met in a service linkage monitoring job. The service linkage monitoring job is executed as a custom event job in JP1/AJS3. Consider what value should be stored in each of the fields, OBJECT01 to OBJECT10, for the passing information name of this custom event job after the monitoring condition is met. Define the design content for passing information in Passing information settings.