Commit b847f2c
committed
feat: [#246] add GrafanaRequiresPrometheus error variant
- Add ConfigError::GrafanaRequiresPrometheus variant with clear error message
- Implement comprehensive help() method with actionable guidance
- Provide two fix options: enable Prometheus or disable Grafana
- Include JSON configuration examples in help text
- Add unit test validating error message and help content
This error will be used during environment configuration validation
to enforce the dependency that Grafana requires Prometheus to be enabled.1 parent 503df82 commit b847f2c
1 file changed
+41
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
366 | 370 | | |
367 | 371 | | |
368 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
369 | 398 | | |
370 | 399 | | |
371 | 400 | | |
| |||
508 | 537 | | |
509 | 538 | | |
510 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
511 | 552 | | |
0 commit comments