aws Apply Monitoring with Templates

You can create templates in the probe to configure multiple profiles with the same monitor configuration. The templates are applicable to only the specific instance of the probe on the robot. The Template Editor interface allows you to create and apply monitoring templates so that you can configure multiple profiles together. Templates reduce the time that is required to configure the monitors and provide consistent monitoring across all the components in your cloud. Expand and click nodes in a template to see the template components and any associated monitors.
uimpga-ga
You can create templates in the probe to configure multiple profiles with the same monitor configuration. The templates are applicable to only the specific instance of the probe on the robot. The 
Template Editor
 interface allows you to create and apply monitoring templates so that you can configure multiple profiles together. Templates reduce the time that is required to configure the monitors and provide consistent monitoring across all the components in your cloud. Expand and click nodes in a template to see the template components and any associated monitors.
Each template contains the following types of nodes:
  •  
     
    Template name
     node:
     Each template is created as a 
    Template name
     node. You can activate or deactivate a template using this node.
  •  
    Organizational nodes
    : These nodes allow you to group related components. These nodes do not contain any configuration settings.
  •  
     
    Filter name
     nodes:
     These nodes contain the filter settings and rules.
  •  
    Probe inventory nodes
    : These nodes contain the monitoring configuration settings. Monitors collect quality of service (QoS), event, and alarm data.
 You can specify 
Precedence
 values in 
 
Template name
 
 and 
 
Filter name
 
 nodes to define the order in which the node configurations are applied. Precedence controls the order of template application. The probe applies a template with precedence one before a template with precedence two. If configurations between two templates overlap, the template with a lower precedence overrides the other template. If the precedence numbers are equal, then the templates are applied in alphabetical order.
 
Contents
 
 
 
Apply Default Templates
The default templates contain settings for recommended monitor configurations for the monitors in the default USM view. You can use these default configurations to start collecting data for your environment.
 On probe version 4.0x, you can directly configure the default template, to use as required. However, we recommend you to create a copy of the default template and configure the copy, as required.
 
Follow these steps
:
  1. Open the probe configuration interface.
  2. Click 
    Template Editor
    .
    The 
    Template Editor - 
    <probeName> <Version>
     
     page is displayed.
  3. Click the 
    Options (icon)
     next to the 
    AWS Default Template
     node and click 
    Copy
    .
    The 
    Copy
     dialog appears. 
  4. Enter the name and a description of the template.
  5. Enter a precedence value for the template.
    The rules for setting the precedence are as follows:
    • A numeric value is set as precedence.
    • The default value is 0 (highest precedence).
    • The precedence is applied on multiple templates. The scenarios are described as follows: 
      •  
        When the precedence is different for the templates: 
        The precedence of a template decreases as the value increases.
        Example: 1 has higher precedence than 2, and so on.
      •  
        When precedence is same for all templates:
         The precedence works in alphabetical order of template name.
      •  
        When filters are applied on templates:
         The precedence works according to the applied filters. If no filter is applied, the precedence is applied on available templates.
  6. Select the 
    Active 
    checkbox to activate the template, on creation.
  7. Click 
    Submit 
    and then click 
    Save
    .
The probe applies the template with the default settings.
Create a Template
You can create a template to configure multiple existing profiles with the same monitor configuration.
 You can create multiple templates, but that can increase the system load on the probe. We recommend you to use template rules as much as possible. A single template can apply specific configurations to groups of target devices in your environment.
 
Follow these steps:
 
  1. Click 
    Template Editor
    .
    The 
    Template Editor - 
    <probeName> <Version>
     
     page is displayed.
  2. Click the 
    Options (icon)
     next to the 
    aws probe
     node.
  3. Click 
    Create Template
    .
    The 
    Template
     dialog appears. 
  4. Specify a name and description for the template.
  5. Enter the precedence value if you want to modify the default precedence setting.
  6. Click 
    Submit 
    to create the template.
    The 
     
    <templateName> 
     
    node is displayed followed by all the profile nodes of the probe.
     You can skip 
    Step 8
     and 
    Step 9
     when you do not need to configure the applicable monitors, as required.
  7. Click the 
     
    <templateName> 
     
    node to activate or deactivate the template.
  8. Click the 
    Options (icon)
     next to nodes representing multiple possible values (such as Resource or Engine Monitors) to create filters. Filters allow you to control how the probe applies monitors that are based on attributes of the target device. An 
    Auto Filter
     node is available with all nodes that can be filtered.
  9.  Create rules for filters, as required.
  10. Navigate to the applicable node with the monitors that require configuration.
  11. Select 
    Include in Template
     to include and enable configuration of a monitor or section in the template. This checkbox is available for static nodes and within filters for dynamic nodes.
  12. Select the
     Publish Data
     and 
    Publish Alarms
     fields to retrieve QoS data and generate alarm messages, respectively.
  13. Select 
    Compute Baseline
     to enable thresholds. This option might not be available depending on your CA Unified Infrastructure Management configuration. For more information, see Configuring Alarm Thresholds.
  14. Select 
    Save
    .
    The template is created and is applied to the applicable profiles at the next probe interval.
 The sections of the profiles that are configured using templates are not available for individual configuration. Clear the 
Active
 checkbox to deactivate the template on the profile to unlock it. You can also exclude a profile using filter rules.
Create Template Filter Rules
Filters contain one or more rules to define the types of components for the template. You can add rules to a filter to group multiple components or can exclude components from monitoring. You can add rules to a filter to identify a configuration for specific components. For example, you can add a rule to apply the monitor 
NetworkIn
 to all auto scaling groups.
 A filter applies to components that match all the defined rules. If you do not add any rules to a filter, the configuration of the filter applies to all the components.
 
Follow these steps:
 
  1. Click the 
     
    Filter name
     
     node to be configured.
  2. Click 
    New
     in the 
    Rules
     section of a filter.
    A new rule is created. 
  3. Select the filter category.
  4. Specify the condition that the probe uses to match against the label.
    All the conditions are described as follows:
    •  
      Contains
      : indicates that the label contains the specified value.
    •  
      Does  not  Contain
      : indicates that the label does not contain the specified value.
    •  
      Ends  With
      : indicates that the label ends with the specified value.
    •  
      Equals
      : indicates that the label is the same as the specified value.
    •  
      Not  Equals
      : indicates that the label is not the specified value.
    •  
      Regex
      : indicates that the label matches the specified regular expression.
      For more information, see Use Regular Expressions in Templates.
       
       
    •  
      Starts  With
      : indicates that the label starts with the specified value.
  5. Specify the value against which the probe matches the label.
  6. Enter a precedence value for the filter.
     The rules for setting the precedence value for filters are same as setting precedence for templates.
  7. Click 
    Save
     to save the rule for the filter.
The filter becomes applicable to all instances that match the created rule.
 Activate the template for the probe to apply the monitor configuration. When you change the template state to 
active
, the probe applies all template configuration, including filters, rules, and monitors in the next monitoring interval. However, when you remove an applied template, the probe can take 3 to 4 intervals before the template configuration is reverted.
(aws 4.10 and later) Use EC2 Tags in Filters
You can filter the EC2 instances using AWS tags. You can then apply a template filter to EC2 instances with specific tags.
 
Follow these steps:
 
  1.  Configure EC2 Tags in the probe.
  2. Select the 
     
    Filter name
     
     node.
  3. Click 
    New
     in the 
    Rules
     section of a filter.
  4. Specify the AWS tag as the filter category.
     The list only includes the tags that are configured on the probe. For more information, see 
    Step 1
    .
  5. Specify the condition that the probe uses to match against the tag.
  6. Specify the value of the tag as defined in the AWS resource.
  7. Click 
    Save
    .
(aws 5.10 and later) Use AWS Regions in Filters
You can filter the EC2 instances using AWS regions. You can then apply a template filter to EC2 instances in specific regions. For example, specify 
eu-west-1
 for the 
EU (Ireland)
 region.
 
Follow these steps:
 
  1. Select the 
     
    Filter name
     
     node.
  2. Click 
    New
     in the 
    Rules
     section of a filter.
  3. Specify 
    Region
     as the filter category.
  4. Specify the condition that the probe uses to match against the tag.
  5. Specify the region code as the value for the filter rule.
  6. Click 
    Save
    .
(Optional) Create a Copy of the Filter
You can copy an existing filter to apply similar monitoring configuration to different components.
 
Follow these steps:
 
  1. Select the
     
    Filter name
     
     node.
  2. Click 
    Options (icon) > Copy
  3. Enter the filter name.
  4.  
    (Optional)
     Modify the precedence of the filter.
  5. Click 
    Submit
     to create an exact copy of the filter using the specified name.
  6. Configure the components, as required.
  7. Click 
    Save
    .
Use Regular Expressions in Templates
A regular expression (regex for short) is a special text string for describing a search pattern. Constructing regular expression and pattern matching requires meta characters. The probe supports Java regular expressions (regex).
You can also use simple text with some wildcard operators for matching the target string. For example, 
*test*
 expression matches the text 
test
 in target string.
For more information about how to use regular expressions in a filter field, see the article, Use Regular Expressions with Java-based Probes.