liveBook · Manning

Spring.ai.advisor metric

As explained in Spring AI in Action

The spring.ai.advisor metric records counts and durations of operations performed through Spring AI advisors.

spring.ai.advisor measures the count and duration of prompts handled by Spring AI advisors. Its non-active measurements aggregate activity since application startup, while spring.ai.advisor.active reports currently active prompts. section 9.1

Filter advisor measurements with the available tags:

  • spring.ai.kind is always advisor for this metric and therefore does not distinguish operations. section 9.1.4
  • Spring AI does not expose advisor names as filterable tags, limiting per-advisor filtering. section 9.1.4

How Spring AI in Action covers it

How deep it goes
Exposes aggregate and active counts, durations, and advisor-type tags, but stops short of identifying individual advisors.
Examples
Shows an HTTPie response reporting three advisor operations and nearly seven seconds of total time.
What it assumes
Assumes an application exposing Spring AI metrics through Spring Boot Actuator.
What you can do after
Diagnose advisor activity through the Actuator metrics endpoint and interpret counts, durations, active state, and type tags.
How it connects
Connects Spring AI advisors with Spring Boot Actuator, metrics endpoints, and active-operation monitoring.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring AI in Action. The section links point to the parts of the book it draws on.