Metric binding to resources
Summarize
Summary of Metric binding to resources
Metric binding to resources in ServiceNow's Metric Intelligence allows you to bind metric series not only to Configuration Items (CIs) but also to specific resources within those CIs, such as individual disks or web pages. This approach enhances the granularity and efficiency of monitoring by enabling detailed tracking and aggregation of metrics at the resource level rather than only at the CI level.
Show less
Key Features
- Two Binding Methods:
- CI/Metric binding: Associates metrics directly with a CI (e.g.,
winserver001/responsetimemean). - Resource binding: Associates metrics with a resource within a CI using a
CI/Resource/Metricformat (e.g.,winserver001/Disk — C/diskusage), enabling more detailed metric modeling.
- CI/Metric binding: Associates metrics directly with a CI (e.g.,
- Efficient Aggregation: Resource binding supports meaningful aggregations across similar resource metrics (e.g., average disk usage across all disks on a host).
- Resource Records: When binding to resources, resource records are created or updated to represent monitored entities that may not exist as CIs in the CMDB.
- Resource Class Mapping: Metric Intelligence uses the CI Type To Resource Class [sacitypetoresourceclass] table to map CI classes to corresponding resource classes, facilitating automatic resource identification during metric binding.
- Resource Tables: The system includes a hierarchy of resource tables extending from the CI Resource [ciresource] parent table, such as hardware, applications, services, databases, and virtual machine objects.
Use Cases
Resource binding is especially useful when monitoring entities like disks, processors, network interfaces, or web pages that:
- Exist within a CI but are not individually represented as CIs in the CMDB.
- Require detailed metric tracking and aggregation at the resource level.
- Are captured by monitoring tools that generate KPIs for specific components within services, such as individual web pages.
How Metric Binding to Resources Works
- The MID Server generates metric binding events for monitored metrics.
- The system attempts to identify the CI associated with each metric event.
- Once the CI is identified, the system refers to the CI Type To Resource Class mapping to find the appropriate resource class.
- The
resourcepathattribute in the event's additional information is used to locate or create a matching resource record within the resource class. - The metric event is then bound to the resource record, enabling precise tracking and aggregation.
Configuration Requirements
- Ensure the system property
sa.metric.use.resource.bindingis set totrue(default) to enable resource binding. - For metrics to bind to resources, populate the
resourcepathattribute by either:- Using event rules to add
resourcepathto the Additional information field in metric events. - Including
resourcepathas part of the CI identifier data sent to the MID Server.
- Using event rules to add
- Review and customize the default mappings in the CI Type To Resource Class [sacitypetoresourceclass] table to ensure accurate resource classification before processing metric data.
- Managing the mapping table requires the
evtmgmtadminrole.
Practical Benefits for ServiceNow Customers
- Improved granularity in metric collection and monitoring by capturing metrics at the resource level within CIs.
- More accurate and meaningful metric aggregation across similar resources, facilitating better performance analysis and troubleshooting.
- Ability to monitor and bind metrics for entities that are not present as CIs in the CMDB, extending monitoring capabilities.
- Streamlined metric event processing through automated resource identification and binding, reducing manual effort in metric management.
Bind metrics to resources to simplify metric events binding by enabling binding to resources such as specific disks or web pages, in addition to binding to CIs.
- Binding a metric series to a CI and to the metric being monitored for that CI using a 'CI/Metric' format. For example, 'win_server_001/response_time_mean'.
- Binding a metric series to a CI, a resource within that CI, and the metric being monitored for that resource, using a 'CI/Resource/Metric' format. For example, 'win_server_001/Disk — C/disk_usage'. This method is referred to as resource binding.
- Common examples are disks, processors, and network interfaces. In cases in which these entities are being monitored but do not exist in the CMDB, using resources for metric binding is useful.
- Some monitoring solutions capture metric data within services such as KPIs for individual web pages in an application. In such cases where the entity being monitored is not a configuration item, metric binding to resources can be helpful.
Resource binding process
- Identify the CI class of the CI that was bound to the metric binding event.
- Locate the resource class which is mapped to that CI class (using the CI Type To Resource Class [sa_ci_type_to_resource_class] table).
- Read the resource_path attribute value in the additional_information field in the metric binding event.
- Check if a resource record exists in the resource class table, in which name is equal to resource_path and cmdb_ci is equal to the CI that was bound to the metric binding event.
- If such resource record exists, then the metric binding event is bound to that resource. Otherwise, a new resource record is created with the preceding values and the metric binding event is bound to the newly created resource.
Configure resource binding
- Ensure that the sa.metric.use.resource.binding system property is set to true (default).
- For series intended to be bound to resources, ensure that the
resource_path attribute is populated by doing either step:
- Use an event rule to add the resource_path attribute to the Additional information field in events. For more information, see Creating an event rule to map metrics to specific CIs.
- Populate the resource_path attribute as a part of the respective CI identifier when data is sent to the MID Server for processing.
- Review the default mappings in the CI Type To Resource Class [sa_ci_type_to_resource_class]
table and adjust as needed. It is critical that mappings are set as desired prior to data
processing.
Managing the CI Type To Resource Class table requires the evt_mgmt_admin role.
Resource tables
- CI Resource [ci_resource] (parent table):
- Tables that extend CI Resource [ci_resource]:
- ci_resource_hardware
- ci_resource_appl
- ci_resource_service
- ci_resource_vm_object
- ci_resource_database
Mapping CIs to resources
Mappings of CI classes to resource classes are stored in the CI Type To Resource Class [sa_ci_type_to_resource_class] table. This table is installed with Metric Intelligence, and is used during metric binding to resources.
| CI class | Resource class |
|---|---|
| cmdb_ci_hardware | ci_resource_hardware |
| cmdb_ci_appl | ci_resource_appl |
| cmdb_ci_service | ci_resource_service |
| cmdb_ci_database | ci_resource_database |
| cmdb_ci_vm_object | ci_resource_vm_object |