Configure a metric definition

task australia Updated Sep 10, 2026 4 min read add-edit-metric-definition.md
Raw file servicenow.com

Configure a metric definition to create or modify the existing base system CI metrics displayed on the Investigation tab.

Before you begin

Important:

Starting with the Brazil release, Microsoft Endpoint Configuration Manager for Investigation and Agent Client Collector for Investigation are being prepared for future deprecation. They will be hidden and no longer installed on new instances but will continue to be supported. For details, see the Deprecation Process [KB0867184] article in the Now Support Knowledge Base.

Role required: sn_cimaf.sn_cimaf_admin

Procedure

  1. Navigate to All > Metrics and CI Actions Framework > Administration > Metric Definitions.

    The following existing metric definition tables are displayed:

    • Asset usage
    • Installed Applications
    • Logged-in users
    • Running processes
    • Services
    • System Information (dsregcmd)
    • System Information (msinfo32)
    • System overview
  2. Create a metric definition record.

    You can also select an existing metric definition record to modify the record.

    1. Select New.

    2. On the Metric definition form, fill in the fields.

      Field Description
      Name Name of the metric.
      Active Option to activate the metric definition.
      CI Class Particular CI class for which the metric is applicable.
      Description Description of the metric definition.
      Schema High-level structure in which the metrics retrieved from the provider are stored in the metric table.
    3. Select Submit.

  3. On the Adapter Configuration related list, create a record.

    Adapter configuration for the metric definition enables you to define the provider, the query, and transform flows or scripts.

    1. Select New.

      You can also select an existing adapter configuration record to modify the record.

    2. On the Adapter Configuration form, fill in the fields.

Field

Description

Name

Name of the adapter configuration.

Metric Definition

Metric definition for which the adapter configuration is created.

Provider

Provider for metrics, such as Agent Client Collector or Microsoft Endpoint Configuration Manager for Investigation.

Order

Sequence order in which the adapter configuration record applies to the metric definition when there are multiple configurations available.Note: Only the first applicable adapter configuration, based on the Order value, is used to fetch the metrics.

Duplicate request time limit (seconds)

Number of seconds during which duplicate metric requests are prevented while one is already in progress.

Query

Query Action

Type of action that is used to retrieve the metric data from the provider. The value can be a flow or script.

Query Flow/script

Flow or script that is used to retrieve the metric from the provider.Note: If no flow or script is defined, the default query flow of the provider is used.

Transform

Transform Action

Type of action that is used to transform the metric data, which is retrieved by the provider, to output. The value can be a flow or script.

Transform Flow/script

Flow or script that is used to transform the metric data, which is retrieved by the provider, to output.Note: If no flow or script is defined, the default transform flow of the provider is used.

3. Select **Submit**.
  1. On the Provider Specific Adapter Configuration related list, create a record.

    Provider Specific Adapter Configuration table enables you to define and configure adapter configuration, such as query or command, for a specific provider, such as Agent Client Collector (ACC) or Microsoft Endpoint Configuration Manager (MECM) for Investigation.

    1. Select New.

      You can also select an existing provider specific adapter configuration record to modify the record.

      A list of provider-specific action configuration tables is displayed, such as ACC Action Configuration and MECM Action Configuration.

    2. Select the provider for which you want to create an adapter configuration.

    3. On the Provider Specific Adapter Configuration form, fill in the fields.

Field

Description

Name

Name of the provider specific adapter configuration.

Adapter Configuration

Adapter configuration for which the provider specific adapter configuration is created.

Active

Option to activate the configuration.

Check Definition

Check definition that is used to run the command or query and handle its output. For example, app-ci-metrics-acc-adapter.osquery.Note: This is applicable only if the provider is Agent Client Collector for Investigation.

Query/Command

Query or command that the provider runs on the end machine.Note: This is applicable only if the provider is Agent Client Collector for Investigation.

Action Input

Input parameters required by flow action.Note: This field is applicable only if the provider is Microsoft Endpoint Configuration Manager for Investigation.

Flow Action

MECM spoke flow action to perform the read operation on the MECM device.Note: This field is applicable only if the provider is Microsoft Endpoint Configuration Manager for Investigation.

Output Flow Action

MECM spoke flow action to look up the read operation response from the MECM server.Note: This field is applicable only if the provider is Microsoft Endpoint Configuration Manager for Investigation.

4. Select **Submit**.
  1. On the Adapter Applicability Rule related list, create a rule.

    Adapter Applicability Rule table enables you to configure which CIs apply to the selected adapter configuration.

    1. Select New.

      You can also select an existing adapter applicability rule record to modify the record.

    2. On the Adapter Applicability Rule form, fill in the fields.

      Field Description
      Adapter Configuration Adapter configuration that applies to the adapter applicability rule.
      CI Conditions
      CI Class CI class that applies the adapter configuration.
      Allow matching CI class extension Option to apply the configurations to the child of a CI class.
      CI conditions Condition builder to configure which CIs apply to the adapter configuration.
    3. Select Submit.

What to do next

After the new metric definition is created, perform the UI configuration for displaying the metric definition on the Investigate tab of the incident record page. You must get the sys_id of the metric definition and add it to the sn_sow.SOWInvestigateConfig script. You can also customize the display of the metric definition, such as the labels, units, and threshold values. For more information, see Customize the Investigate tab.

Parent Topic:Setting up Investigation Framework in Service Operations Workspace

Search documentation
Search document titles and file paths on the australia branch