Note on PromQL expression
-
Performance data obtained by PromQL statements described in metric definition files and alert configuration files must have the following labels set for each type of SID in the configuration information (for CloudWatchSIDs other than EC2, for each AWS namespace).
For details about SID types of configuration information, see 3.15.6(1)(a) Type of SID of the target configuration and its available functions in the JP1/Integrated Management 3 - Manager Overview and System Design Guide.
Table 2‒118: Label that must be set in the performance data retrieved by the PromQL statement Configuration information SID type
AWS namespace
Label that must be set in trend data (obtained with PromQL specified in promql in the metric definition file)
Label that must be set to alert (obtained with PromQL specified in expr in alert configuration file)
Agent SID
--
-
instance
-
job
-
jp1_pc_nodelabel
-
jp1_pc_prome_hostname
-
instance
-
job
-
jp1_pc_nodelabel
-
jp1_pc_exporter
Remote Agent SID
-
instance
-
job
-
jp1_pc_nodelabel
-
jp1_pc_exporter
-
jp1_pc_remote_monitor_instance
CloudWatchSID for EC2
AWS/EC2
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_InstanceId
CloudWatchSID other than EC2
AWS/DynamoDB
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_TableName
AWS/Lambda
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_FunctionName
AWS/S3
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_BucketName
-
dimension_StorageType
AWS/SQS
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_QueueName
AWS/States
In addition to the common label# of CloudWatchSID, the following label is required.
-
dimension_APIName
SIDs to monitor logs
--
-
instance
-
jp1_pc_nodelabel
--
-
- (Legend)
-
--: N/A
- #
-
The CloudWatchSID common label indicates the following labels:
-
instance
-
job
-
jp1_pc_nodelabel
-
jp1_pc_exporter
-
account_id
-
region
-
jp1_pc_remote_monitor_instance
-
-
When narrowing down performance data using without clauses, by clauses, etc. in PromQL statements, perform the narrowing down so that the labels described in "Table 2-5 Labels that must be set in the performance data obtained by PromQL statements" are not deleted.
-
If an invalid PromQL statement is set in the promql of the metric definition file, the correct trend data will not be returned by the return trend data function.
-
If an incorrect PromQL statement is set in expr in the alert configuration file, JP1 events may not be issued, extended attribute values may be blank, or JP1 events may not be associated with the correct IM management node.jpc_file_sd_config_node.yml