Skip to content

Add golden metrics and summary metrics for APM AI Agent#2703

Open
msanthoshi-coder wants to merge 5 commits intonewrelic:mainfrom
msanthoshi-coder:Add-golden-metrics-for-APM-AI-Agent-in-entity-definition
Open

Add golden metrics and summary metrics for APM AI Agent#2703
msanthoshi-coder wants to merge 5 commits intonewrelic:mainfrom
msanthoshi-coder:Add-golden-metrics-for-APM-AI-Agent-in-entity-definition

Conversation

@msanthoshi-coder
Copy link
Contributor

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

Summary

Adds golden_metrics.yml for the apm-ai_agent entity type with three key metrics:

  • Throughput — invocations per minute, sourced from both OpenTelemetry spans (filtered by gen_ai.agent.name) and APM transaction duration events.
  • Latency — average response time in milliseconds, from OTel span duration and APM transaction duration.
  • Error rate — percentage of errored spans/transactions, using otel.status_code = 'ERROR' for OTel and APM error count ratio.
  • Both OpenTelemetry and APM data sources are supported for each metric.

Adds summary_metrics.yml for the apm-ai_agent entity type, referencing the three golden metrics as summary metrics displayed on the entity overview:

  • Response time (ms) — references responseTimeMs golden metric
  • Throughput (requests per minute) — references throughput golden metric
  • Error rate (percentage) — references errorRate golden metric

@entityBot entityBot requested a review from a team March 18, 2026 08:49
@entityBot entityBot requested review from a team and removed request for a team March 18, 2026 08:51
@msanthoshi-coder msanthoshi-coder changed the title Add golden metrics for APM AI Agent Add golden metrics and summary metrics for APM AI Agent Mar 18, 2026
entityBot
entityBot previously approved these changes Mar 18, 2026
entityBot
entityBot previously approved these changes Mar 18, 2026
@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/AIM

Please review or provide an update.

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.

2 participants