Commit 764778e
authored
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.1 parent fe2ad8a commit 764778e
7 files changed
Lines changed: 767 additions & 328 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
257 | 287 | | |
258 | 288 | | |
259 | 289 | | |
| |||
265 | 295 | | |
266 | 296 | | |
267 | 297 | | |
| 298 | + | |
268 | 299 | | |
269 | 300 | | |
270 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments