Metric binding to resources
Summarize
Summary of Metric binding to resources
Metric binding to resources in ServiceNow Metric Intelligence enables more granular and efficient monitoring by associating metric data not only with Configuration Items (CIs) but also with specific resources within those CIs, such as disks, web pages, or network interfaces. This approach enhances metric event binding by allowing detailed modeling, storage, aggregation, and querying of metrics at the resource level, providing deeper insights especially when multiple similar resources exist within a CI.
Show less
Key Features
- Two Binding Methods:
- CI/Metric format: Binds metrics directly to CIs (e.g.,
winserver001/responsetimemean). - CI/Resource/Metric format (Resource Binding): Binds metrics to specific resources within a CI (e.g.,
winserver001/Disk — C/diskusage), allowing finer granularity.
- CI/Metric format: Binds metrics directly to CIs (e.g.,
- Resource Binding Process: The MID Server generates metric binding events, which the instance processes by identifying the CI and then attempting to bind the metric to a resource. If the resource does not exist, it is created automatically.
- Configuration: Enable resource binding by setting the
sa.metric.use.resource.bindingsystem property to true. Populate theresourcepathattribute either via event rules or as part of the CI identifier sent to the MID Server. - Resource and CI Class Mappings: Uses the CI Type To Resource Class [sacitypetoresourceclass] table to map CI classes to corresponding resource classes. This mapping is critical for correct resource binding and can be adjusted by users with the
evtmgmtadminrole. - Resource Tables: Metric Intelligence provides a hierarchy of resource tables extending from the parent CI Resource [ciresource] table, including hardware, application, service, VM object, and database resource tables.
Key Outcomes
- Enables detailed monitoring and analysis of metrics for individual resources within CIs, improving accuracy and relevance of metric aggregation.
- Supports use cases where monitored entities are not present in the CMDB, such as individual web pages or network interfaces, allowing meaningful metric aggregation across similar resource types.
- Improves metric data modeling and querying capabilities at a more granular level, facilitating better operational insights and decision-making.
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 Create 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 |