feat: add /metrics endpoint for backend monitoring#81
Open
precious-akpan wants to merge 4 commits intoCreditra:mainfrom
Open
feat: add /metrics endpoint for backend monitoring#81precious-akpan wants to merge 4 commits intoCreditra:mainfrom
precious-akpan wants to merge 4 commits intoCreditra:mainfrom
Conversation
- Install prom-client@^15.1.0 for Prometheus metrics - Install fast-check@^3.15.0 for property-based testing - Create MetricsCollector interface in src/services/metricsCollector.ts Task: Set up metrics infrastructure and dependencies Issue: Creditra#33
Contributor
|
@precious-akpan Can you resolve the conflicts? |
- Fix duplicate 'test:coverage' script entries - Fix missing commas in dependencies - Remove duplicate 'dependencies' section - Consolidate duplicate devDependencies entries - Keep both upstream packages (jest, ts-jest, zod) and our additions (prom-client, fast-check) - Maintain proper JSON syntax throughout This resolves the merge conflict between our metrics dependencies and the upstream changes.
Resolved conflicts by keeping our clean package.json which fixes the upstream corruption and includes our metrics dependencies.
- Remove all duplicate dependencies from package.json - Remove invalid 'test:coverage' entry from dependencies - Fix vitest.config.ts duplicate content from bad merge - Consolidate vitest configuration with proper coverage settings These files had merge conflicts that resulted in invalid JSON/TS syntax.
Author
|
@greatest0fallt1me conflicts resolved. Awaiting your approval. |
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.
Description
Add a /metrics endpoint exposing Prometheus-style metrics for request counts, latencies, errors, and background job stats.
Changes
Related Issue
Closes #33
Testing
Documentation
Status
��� Work in progress - Task 1 of 13 completed