You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Prometheus metrics support and update configuration (#46)
- Introduced a new metrics service for Prometheus integration, including counters and histograms for tracking tool executions, HTTP requests, and errors.
- Updated the logger to record metrics for tool access, including execution duration and success/error status.
- Added configuration options for enabling metrics in the YAML configuration file.
- Enhanced the README with instructions on enabling and accessing Prometheus metrics.
- Updated the main application to conditionally expose a metrics endpoint based on configuration.
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -254,6 +254,36 @@ The service generates tools from AAP OpenAPI specifications for:
254
254
255
255
Tool availability depends on your configured categories and user permissions. When the web UI is enabled, you can browse available tools at `http://localhost:3000/tools`.
256
256
257
+
## Prometheus Metrics
258
+
259
+
The service includes comprehensive Prometheus metrics for monitoring and observability. Enable metrics in your configuration:
260
+
261
+
```yaml
262
+
# In aap-mcp.yaml
263
+
enable_metrics: true
264
+
```
265
+
266
+
Or via environment variable:
267
+
268
+
```bash
269
+
export ENABLE_METRICS=true
270
+
```
271
+
272
+
### Metrics Endpoint
273
+
274
+
When enabled, Prometheus metrics are available at:
275
+
276
+
```
277
+
http://localhost:3000/metrics
278
+
```
279
+
280
+
### Available Metrics
281
+
282
+
- **HTTP Metrics**: Request counts, duration, and status codes
0 commit comments