Movatterモバイル変換


[0]ホーム

URL:


NerdGraph tutorial: Managing the Metric Normalization Rules

You can useNerdGraph mutations to managemetric 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 resolveMetric Grouping Issues (MGIs).

The metric normalization rules are used to:

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

Prerequisites

Tip

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

Retrieve the metric normalization rules

Use themetricNormalizationRules 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 totrue, 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 followingNerdGraph mutations:

On this page

Was this doc helpful?

Edit this doc

[8]ページ先頭

©2009-2025 Movatter.jp