Add observability module: Spring AI built-in meters and spans, cost per endpoint from token usage, Prometheus and Grafana dashboard
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JXVi2GMQ7bR5EmbUFdDj7N
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: spring-ai
|
||||
type: file
|
||||
options:
|
||||
path: /tmp/obs-run/dashboards
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prom
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: http://127.0.0.1:9090
|
||||
isDefault: true
|
||||
@@ -0,0 +1,7 @@
|
||||
global:
|
||||
scrape_interval: 2s
|
||||
scrape_configs:
|
||||
- job_name: spring-ai-observability
|
||||
metrics_path: /actuator/prometheus
|
||||
static_configs:
|
||||
- targets: ["127.0.0.1:8080"]
|
||||
Reference in New Issue
Block a user