-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
GH-2177 Extend prometheus with new metrics #2177
GH-2177 Extend prometheus with new metrics #2177
Conversation
- Update prometheus metrics to latest version - Expose additional jetty metrics - Expose additional queued thread pool metrics - Expose additional reposilite metrics
…sponse time Removes request uri from response time, as > The generally accepted rough limit for a single Prometheus server is in the low millions of time series > https://discuss.prometheus.io/t/windows-network-traffic-by-remote-ip/1626 The prometheus docs recommend keeping the cardinality of metrics low (generally under like 100-ish): https://prometheus.io/docs/practices/instrumentation/#do-not-overuse-labels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Added some minor comments + I think it'd be nice to add at least one test to check if it even starts 😅 Here's tiny example how to bootstrap it for a plugin: https://github.com/dzikoysk/reposilite/blob/main/reposilite-plugins/migration-plugin/src/test/kotlin/com/reposilite/plugin/migration/MigrationPluginTest.kt#L12
...ugins/prometheus-plugin/src/main/kotlin/com/reposilite/plugin/prometheus/PrometheusPlugin.kt
Outdated
Show resolved
Hide resolved
...ugins/prometheus-plugin/src/main/kotlin/com/reposilite/plugin/prometheus/PrometheusPlugin.kt
Outdated
Show resolved
Hide resolved
...ugins/prometheus-plugin/src/main/kotlin/com/reposilite/plugin/prometheus/PrometheusPlugin.kt
Outdated
Show resolved
Hide resolved
...s-plugin/src/main/kotlin/com/reposilite/plugin/prometheus/metrics/QueuedThreadPoolMetrics.kt
Outdated
Show resolved
Hide resolved
This looks great, thank you! |
@dzikoysk I've applied all suggested changes, it's ready to merge now |
Reworks the prometheus metrics plugin.
Changes: