Skip to content

Feat(server) add prometheus metrics #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 23, 2025

Conversation

RomainNeup
Copy link
Contributor

@RomainNeup RomainNeup commented Feb 23, 2025

This pull request resolve #379, which adds prom-client to the project. The changes include:

Exposing a new endpoint /metrics that displays:

  • http_requests_total
  • http_request_duration_nanoseconds
  • imports_total
  • ingested_tracks_total
  • ingested_albums_total
  • ingested_artists_total

In addition to these custom metrics, the PR also exposes all default Prometheus metrics, including CPU usage, memory usage, and garbage collection (GC) metrics.

@RomainNeup RomainNeup force-pushed the feat/add-prometheus-metrics branch from 24212c4 to c1954ed Compare February 23, 2025 20:46
@RomainNeup
Copy link
Contributor Author

cc @Yooooomi 👋
If you have time to review it 🙏

@RomainNeup RomainNeup changed the title Feat/add prometheus metrics Feat(server) add prometheus metrics Mar 1, 2025
@Yooooomi
Copy link
Owner

Hello, nice idea! I made some work for it to be easier, if you have time to review it before i merge would be great :)

@RomainNeup
Copy link
Contributor Author

I can't approve but looks good to me :)
(cc @Byh0ki)

@Yooooomi Yooooomi force-pushed the feat/add-prometheus-metrics branch from 1efb72c to 0ece3be Compare March 23, 2025 18:56
@Yooooomi Yooooomi merged commit fa0fce9 into Yooooomi:master Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add OpenMetrics/Prometheus endpoint to expose YS internal metrics
2 participants