feat(metrics): add Prometheus metrics support with endpoint and configuration - #435
Open
matheusandre1 wants to merge 1 commit into
Open
feat(metrics): add Prometheus metrics support with endpoint and configuration#435matheusandre1 wants to merge 1 commit into
matheusandre1 wants to merge 1 commit into
Conversation
🤖 ThrillhouseBot PR SummaryWhat this PR doesAdds a GET /metrics endpoint serving OpenTelemetry metrics in Prometheus text format, along with a new counter for completed/failed reviews, configuration for enabling/disabling, and integration tests. Control-Flow Diagram🔀 Show diagramflowchart TD
A["ReviewOrchestrator.applyReviewResult()"] --> B["ReviewOutcomeMetrics.recordCompleted()"]
A2["ReviewOrchestrator.applyReviewFailure()"] --> B2["ReviewOutcomeMetrics.recordFailed()"]
C["HTTP GET /metrics"] --> D["PrometheusMetricsResource.scrape()"]
D --> E{"reader present?"}
E -- yes --> F["collect and write Prometheus format"]
E -- no --> G["return 404"]
Changes Overview
Changed Files
…and 1 more file(s). Risk Assessment
No new issues found in this PR, but the review cannot be approved until required CI is confirmed green.
|
| Check | Type | Status | Detail |
|---|---|---|---|
| format | missing | ⏳ Pending | - |
| test | missing | ⏳ Pending | - |
| frontend | missing | ⏳ Pending | - |
| trivy | missing | ⏳ Pending | - |
| dependency-review | missing | ⏳ Pending | - |
Automated review by ThrillhouseBot. Reply with /review to re-run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issues
Closes: #44
Checklist