• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

NerdGraph tutorial: Managing the Metric Normalization Rules

preview

We're still working on this feature, but we'd love for you to try it out! This feature is currently provided as part of a preview program pursuant to our pre-release policies.

You can use NerdGraph mutations to manage metric normalization rules in New Relic. By leveraging these mutations, you can create, edit, enable, and disable these rules directly from your New Relic account. This provides a streamlined and programmatic approach to resolve Metric Grouping Issues (MGIs).

The metric normalization rules are used to:

  • Group or filter out metric timeslice data.
  • Manage high cardinality metrics by renaming, dropping, or transforming them before they're ingested into New Relic.
  • Prevent MGIs to ensure that your metrics are well-organized and meaningful.
  • Reduce the number of unique metric names reported to New Relic.

Prerequisites

Dica

You can also create metric normalization rule by using the New Relic platform. For more information, refer to Metric normalization rules.

Retrieve the metric normalization rules

Use the metricNormalizationRules query to retrieve all metric normalization rules associated with your account. This query provides a comprehensive overview of the existing rules, including their status and configuration.

Input parameters

Attribute name

Data type

Description

accountId

String

(Required) The account ID associated with the rule.

enable

Boolean

(Required) If set to true, only enabled rules are returned.

Sample query

{
actor {
user {
name
}
account(id: xxxxxx) {
metricNormalization {
metricNormalizationRules(enabled: true) {
action
applicationGuid
applicationName
createdAt
enabled
evalOrder
id
matchExpression
notes
replacement
terminateChain
}
}
}
}
}

Mutations

Manage your metric normalization rules with the following NerdGraph mutations:

Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.