Skip to content

Add golden metrics and summary metrics for APM AI Tool#2732

Merged
jmenendez-newrelic merged 6 commits intonewrelic:mainfrom
msanthoshi-coder:Add-golden-metrics-and-summary-metrics-for-APM-AI-Tool
Apr 7, 2026
Merged

Add golden metrics and summary metrics for APM AI Tool#2732
jmenendez-newrelic merged 6 commits intonewrelic:mainfrom
msanthoshi-coder:Add-golden-metrics-and-summary-metrics-for-APM-AI-Tool

Conversation

@msanthoshi-coder
Copy link
Copy Markdown
Contributor

@msanthoshi-coder msanthoshi-coder commented Mar 27, 2026

Summary

  • Adds golden metrics in golden_metrics.yml for the apm-ai_tool entity type, providing observability coverage for both OpenTelemetry and APM instrumented AI tools.

Golden metrics added:

throughput — Invocations per minute
responseTimeMs — Average execution time (ms)
errorRate — % of failed invocations
successRate — % of successful invocations
p95Latency — 95th percentile execution time (ms)
timeoutRate — % of calls that timed out
invocationsPerRun — Average tool calls per agent session
errorType — Breakdown of error classes
usageByAgent — Invocation counts by calling agent
concurrency — Active traces per minute

Each metric supports two query providers:

  • apm
  • opentelemetry

Also adds summary_metrics.yml referencing all 10 golden metrics to surface them in the entity summary view.

Tickets for reference:

AI_Tool summary_metrics - https://new-relic.atlassian.net/browse/NR-531083

AI_Tool golden_metrics - https://new-relic.atlassian.net/browse/NR-531085

Api Review Board (ARB)
ARB Jira ticket: https://new-relic.atlassian.net/browse/NR-543093

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'APM-AI_TOOL' on Golden metrics for key 'SELECT rate(count(apm.service.transaction.duration), 1 minute) AS 'Concurrent Invocations' FROM Metric WHERE entity.guid IN ('guid') FACET appName TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* No valid, approved ARB ticket found in the PR description.

@entityBot entityBot requested a review from a team March 27, 2026 07:27
@entityBot entityBot dismissed their stale review March 27, 2026 07:28

Let's validate those changes.

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'APM-AI_TOOL' on Golden metrics for key 'SELECT rate(count(apm.service.transaction.duration), 1 minute) AS 'Concurrent Invocations' FROM Metric WHERE entity.guid IN ('guid') FACET appName TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* No valid, approved ARB ticket found in the PR description.

@entityBot entityBot dismissed their stale review March 27, 2026 07:37

Let's validate those changes.

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

* No valid, approved ARB ticket found in the PR description.

@vlopeziglesias
Copy link
Copy Markdown
Contributor

@msanthoshi-coder this requires an ARB in order to be merged, check here

@entityBot entityBot requested a review from a team March 31, 2026 06:37
@entityBot entityBot dismissed their stale review March 31, 2026 07:09

Let's validate those changes.

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

  • No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach #api-review-board channel in case of doubts

@entityBot entityBot requested review from a team and removed request for a team March 31, 2026 07:09
@msanthoshi-coder
Copy link
Copy Markdown
Contributor Author

Otel Dashboard link - https://staging.onenr.io/0oR80xa63RG

@entityBot entityBot dismissed stale reviews from prahladpawar-nr and themself March 31, 2026 08:27

Dismissing reviews

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

  • No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach #api-review-board channel in case of doubts

@entityBot entityBot requested a review from a team March 31, 2026 08:42
@entityBot entityBot dismissed their stale review March 31, 2026 08:48

Let's validate those changes.

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

  • No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach #api-review-board channel in case of doubts

@entityBot entityBot requested review from a team and removed request for a team March 31, 2026 08:48
@entityBot entityBot dismissed their stale review March 31, 2026 08:49

Let's validate those changes.

Copy link
Copy Markdown
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beep boop bop.

I have found some errors processing these changes:

  • No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach #api-review-board channel in case of doubts

prahladpawar-nr
prahladpawar-nr previously approved these changes Apr 7, 2026
Copy link
Copy Markdown
Contributor

@prahladpawar-nr prahladpawar-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved from AIM Team

@entityBot entityBot requested a review from a team April 7, 2026 08:31
@entityBot entityBot dismissed stale reviews from prahladpawar-nr and prahladpawar-nr April 7, 2026 18:31

Dismissing reviews

@entityBot entityBot requested review from a team and removed request for a team April 7, 2026 18:31
@jmenendez-newrelic jmenendez-newrelic merged commit c60c983 into newrelic:main Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants