Skip to content

[o11y AI] Add get_hosts tool#246541

Merged
sorenlouv merged 5 commits intoelastic:mainfrom
sorenlouv:add-get-hosts-tool
Dec 17, 2025
Merged

[o11y AI] Add get_hosts tool#246541
sorenlouv merged 5 commits intoelastic:mainfrom
sorenlouv:add-get-hosts-tool

Conversation

@sorenlouv
Copy link
Member

Adds the observability.get_hosts tool, enabling agents to retrieve infrastructure host metrics.

Example

POST kbn://api/agent_builder/tools/_execute
{
  "tool_id": "observability.get_hosts",
  "tool_params": {
    "start": "now-4h",
    "end": "now"
  }
}

@sorenlouv sorenlouv requested review from a team as code owners December 16, 2025 13:05
@botelastic botelastic bot added the Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation label Dec 16, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-presentation-team (Team:obs-presentation)

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.4.0 labels Dec 16, 2025
Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

Obs exploration changes LGTM

Copy link
Contributor

@viduni94 viduni94 left a comment

Choose a reason for hiding this comment

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

Tested locally. Looks good 🎉
Thanks for adding this tool @sorenlouv

@sorenlouv sorenlouv changed the title Add get_hosts tool [o11y AI] Add get_hosts tool Dec 16, 2025
@sorenlouv sorenlouv enabled auto-merge (squash) December 17, 2025 11:52
@sorenlouv sorenlouv disabled auto-merge December 17, 2025 11:52
@sorenlouv sorenlouv added v9.3.0 and removed v9.4.0 labels Dec 17, 2025
@sorenlouv sorenlouv merged commit 62c0a89 into elastic:main Dec 17, 2025
17 checks passed
@sorenlouv sorenlouv deleted the add-get-hosts-tool branch December 17, 2025 12:32
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #50 / Endpoint Policy @ess @serverless Creation of DOT indices for elastic defend policies "before each" hook for "should create indices when endpoint integration policy is created"

Metrics [docs]

✅ unchanged

History

mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 17, 2025
…donly

* commit 'bb1f55fa520b30ceb923af069ef403b24dcb1606': (52 commits)
  [CPS][Maps] Support CPS Picker in Maps  (elastic#246382)
  [APM] Migrate the Transaction Overview tests to Scout/Playwright/Component/API tests (elastic#245972)
  [Cases] Change nested field search to be case insensitive (elastic#246643)
  [ES|QL] PromQL parser initial implementation (elastic#246552)
  [Agent Builder] Adds keyboard shortcut and toggle behavior to AI Agent button (elastic#246659)
  Retry on "all shards failed" from ES (elastic#246533)
  [Streams] Test enable wired streams flow (elastic#246113)
  [Agent Builder] Fast-follow bugfixes for MCP Tool type  (elastic#246665)
  [Entity Store][API] Fix snake case on CRUD API List response (elastic#246003)
  [ResponseOps][Slack] Simplify channel configuration  (elastic#245423)
  Add Canonical Name Badge to Documentation (elastic#246647)
  [Streams] Add simulation filtering by conditions (elastic#245400)
  [o11y AI] Add `get_hosts` tool (elastic#246541)
  [agent builder] create_visualization: support heatmap and regionmap (elastic#246671)
  [AI Infra] Chat experience: Selection modal title change (elastic#246683)
  [Background search] Change polling behavior (elastic#244760)
  [ES|QL  ]  Common Lookup Join Fields Are Not Listed First (elastic#246582)
  Add missing `dynamic: false` (elastic#246685)
  [Metrics in Discover] Unskip metrics api test (elastic#246593)
  [ES|QL] Show next actions after simple field assignment in RERANK ON Clause (elastic#246676)
  ...
KodeRad pushed a commit to KodeRad/kibana that referenced this pull request Dec 17, 2025
Adds the `observability.get_hosts` tool, enabling agents to retrieve
infrastructure host metrics.

**Example**
```
POST kbn://api/agent_builder/tools/_execute
{
  "tool_id": "observability.get_hosts",
  "tool_params": {
    "start": "now-4h",
    "end": "now"
  }
}
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants