Sandeep90
ServiceNow Employee
ServiceNow Employee

Introduction

The Health Dashboard provides a powerful way to monitor system health across multiple domains. One of its key features is the ability to control which health metrics are active for specific domains. This article explains how to configure domain-specific settings for health metrics, using correctness as an example. We will use data setup in How Data Visibility Works

 

Understanding Domain Inheritance

Before diving into configuration, it's important to understand how domain inheritance works in the health metrics system. This hierarchical structure enables flexible configuration across your entire domain structure:

  • Global settings are inherited by all domains by default
  • Parent domain settings override global settings and are inherited by child domains
  • Individual domain settings override parent domain settings

Accessing and Configuring Health Preference Settings

Accessing and configuring health metrics is straightforward through the Health Preference interface:

  1. Search for "Health Preference" in the left navigation panel
  2. Click on "Health Preference" to open the health preference page
  3. Select "Health Metrics" tab
  4. Select a specific metric (like correctness) to view its current status

When viewing a metric, you'll see a toggle switch showing whether the metric is active or inactive. By default, metrics are defined in global scope, meaning all subdomains automatically inherit these settings unless specifically overridden.

 

Correctness Health Preference: 

Correctness_health_preference.png

 

Behind the Scenes: How Settings Are Stored

The health metric preferences are stored in the cmdb_health_metric_pref table in the database. Each record contains essential information like:

  • The metric name
  • The domain it applies to
  • Whether it's active or inactive

An important aspect of the inheritance model is that when a domain inherits settings from global or a parent domain, no explicit record exists for that domain in the database until you create an override. This keeps the database efficient while maintaining flexibility.

 

Health Metric Preference:

health_metric_pref_global.png

 

Testing Domain-Specific Settings in Action

To understand how domain-specific settings work in practice, let's examine a test scenario using the correctness metric with an orphan rule:

  1. Configure an orphan rule in the CI Class Manager that identifies CIs with serial_number ending with "_0" as failures 
  2. Run the Correctness health job with all domains active
  3. Examine the health results showing one failure for each domain, confirming the job ran across all domains

Orphan Rule:

OrphanRule.png

Health Result Global:

Sandeep90_1-1747667261712.png

 

The results demonstrate that with default settings, the health check executes uniformly across all domains, identifying matching configuration items in each domain.

 

Applying Domain-Specific Overrides

When you need to exclude specific domains from health checks, you can apply domain-specific overrides:

  1. Switch to the target domain (e.g., Cisco)
  2. Navigate to Health Preference
  3. Locate the desired metric (e.g., correctness)
  4. Turn off the toggle for that metric
  5. Save your changes
InactiveCisco.png

Health Metric Pref(cmdb_health_metric_pref)  cisco domain: 

Sandeep90_2-1747667541886.png

 

After applying this override, several changes occur:

  • The job no longer runs for the deactivated domain
  • Health results will show failures only for domains where the metric remains active
  • The database adds a domain-specific record with active=false, overriding the inherited settings

 

Health Results after running will not contain any cisco domain failures as the domain is skipped for evaluation

 

Sandeep90_1-1747669111739.png

 


 


 

This targeted approach gives you precise control over which domains participate in health monitoring.

 

Optimizing for Large Environments

For environments with thousands of domains, an efficient configuration strategy is essential. Consider this approach:

  1. Deactivate metrics at the global level (set to false)
  2. Selectively activate only for the domains where needed

This "opt-in" approach is more efficient than having everything active by default and selectively deactivating, particularly in large-scale implementations. It minimizes unnecessary processing and focuses health checks only where they're most valuable.

 

Conclusion

Domain-specific health metric settings provide granular control over health monitoring across your ServiceNow environment. By understanding the inheritance model and strategically configuring which domains run specific health checks, you can significantly improve system performance while maintaining effective monitoring where it matters most.

This approach is especially valuable as organizations grow and domain structures become more complex. Taking the time to configure domain-specific settings properly ensures that your health checks remain focused, efficient, and meaningful.

 
Version history
Last update:
‎05-19-2025 08:39 AM
Updated by:
Contributors