Commit decbe30
committed
Add Prometheus metrics and Segment analytics integration
- Updated `aap-mcp.sample.yaml` to include configuration options for Prometheus metrics and Segment analytics.
- Added new `MetricsService` class for collecting and exposing metrics.
- Implemented `AnalyticsService` for tracking tool usage and service events with anonymized data.
- Enhanced `ToolLogger` to record metrics and analytics during tool execution.
- Introduced `/metrics` endpoint for Prometheus scraping.
- Updated `index.ts` to initialize analytics and metrics services based on configuration.1 parent b63a369 commit decbe30
File tree
7 files changed
+629
-33
lines changed- src
7 files changed
+629
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments