Skip to content

[Microsoft Foundry] Add Agent Metrics datastream#17422

Open
muthu-mps wants to merge 9 commits intoelastic:mainfrom
muthu-mps:add_agent_metrics
Open

[Microsoft Foundry] Add Agent Metrics datastream#17422
muthu-mps wants to merge 9 commits intoelastic:mainfrom
muthu-mps:add_agent_metrics

Conversation

@muthu-mps
Copy link
Contributor

@muthu-mps muthu-mps commented Feb 16, 2026

  • Enhancement

Proposed commit message

This PR adds support for Microsoft Foundry Agent metrics. The metrics is in preview state and its subject to change. Please see here for more details on the AI Agent metrics.

The AI Agent metrics is available under Microsoft.CognitiveServices/accounts/projects resource type.

The alerting rule and the dashboard will be created once the metrics is Generally Available in Azure.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

Screenshot 2026-02-16 at 2 31 52 PM

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

✅ Vale Linting Results

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide.

To use Vale locally or report issues, refer to Elastic style guide for Vale.

@andrewkroh andrewkroh added documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:azure_ai_foundry Microsoft Foundry labels Feb 16, 2026
@muthu-mps muthu-mps marked this pull request as ready for review February 17, 2026 04:40
@muthu-mps muthu-mps requested a review from a team as a code owner February 17, 2026 04:40
@muthu-mps muthu-mps changed the title Add Agent Metrics datastream [Microsoft Foundry] Add Agent Metrics datastream Feb 17, 2026
@muthu-mps muthu-mps self-assigned this Feb 17, 2026
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new agent_metrics metrics data stream to the azure_ai_foundry (Microsoft Foundry) integration to collect preview “AI Agents” metrics from Azure Monitor under the Microsoft.CognitiveServices/accounts/projects resource type.

Changes:

  • Bumps package version to 0.9.0 and adds changelog entry.
  • Adds agent_metrics data stream with fields, sample event, stream template, and ingest pipeline.
  • Updates user docs (source + built docs) with an Agent metrics section and exported fields reference.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
packages/azure_ai_foundry/manifest.yml Version bump + adds agent_metrics to policy template and moves azure/metrics vars to input-level.
packages/azure_ai_foundry/data_stream/metrics/manifest.yml Simplifies metrics stream vars (leaves only processors) and adds title/description.
packages/azure_ai_foundry/data_stream/agent_metrics/manifest.yml New agent metrics data stream definition.
packages/azure_ai_foundry/data_stream/agent_metrics/agent/stream/stream.yml.hbs New Azure Monitor metrics query template for agent metrics.
packages/azure_ai_foundry/data_stream/agent_metrics/elasticsearch/ingest_pipeline/default.yml New ingest pipeline to normalize agent metric field names.
packages/azure_ai_foundry/data_stream/agent_metrics/fields/* New field definitions for agent metrics (ECS/base + package + agent metrics fields).
packages/azure_ai_foundry/data_stream/agent_metrics/sample_event.json Example event for the agent metrics data stream.
packages/azure_ai_foundry/docs/README.md Adds Agent metrics documentation and a full example event + exported fields table.
packages/azure_ai_foundry/_dev/build/docs/README.md Regenerated built docs to include agent metrics event/fields.
packages/azure_ai_foundry/changelog.yml Adds 0.9.0 enhancement entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


The Microsoft Foundry agent metrics provide visibility into agent activity and usage, such as token consumption, runs, and tool calls.

An example event for `agent` looks as following:
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

Minor grammar in the new agent metrics section: "looks as following" should be "looks as follows", and it would be clearer to reference the data stream name (e.g. agent_metrics / azure.ai_foundry.agent) rather than just agent.

Suggested change
An example event for `agent` looks as following:
An example event for the `agent_metrics` data stream (dataset `azure.ai_foundry.agent`) looks as follows:

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +31
resource_type: "Microsoft.CognitiveServices/accounts/projects"
metrics:
- name:
- AgentEvents
namespace: "Microsoft.CognitiveServices/accounts"
timegrain: "PT1M"
ignore_unsupported: true
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

In the resource_groups branch, the metrics blocks use namespace: "Microsoft.CognitiveServices/accounts" while the resource type is Microsoft.CognitiveServices/accounts/projects (and the default resource_query branch uses /accounts/projects). This mismatch will query the wrong Azure Monitor namespace for project-scoped agent metrics; update these namespaces to Microsoft.CognitiveServices/accounts/projects for consistency.

Copilot uses AI. Check for mistakes.
@elasticmachine
Copy link

💚 Build Succeeded

History

cc @muthu-mps

@andrewkroh andrewkroh added the Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] label Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:azure_ai_foundry Microsoft Foundry Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants