Skip to content
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

KTOR-8061 MicrometerMetricsConfig add UptimeMetrics to standard meterBinders #4579

Merged

Conversation

SIMULATAN
Copy link
Contributor

Subsystem
Server - Plugin Micrometer

Motivation
Lots of standard dashboards include the JVM process uptime / start time. The default Ktor Micrometer Plugin doesn't include this metric, causing panels referencing it to be empty.

Solution
Add the incredibly simple UptimeMetrics MeterBinder. It adds the process.uptime and process.start.time metrics.

SIMULATAN added a commit to SnotyMe/snoty-backend that referenced this pull request Jan 4, 2025
Can be reverted once ktorio/ktor#4579 is merged
SIMULATAN added a commit to SnotyMe/snoty-backend that referenced this pull request Jan 4, 2025
Can be reverted once ktorio/ktor#4579 is merged
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @SIMULATAN, thanks for the PR! LGTM!

@osipxd osipxd changed the title MicrometerMetricsConfig add UptimeMetrics to standard meterBinders KTOR-8061 MicrometerMetricsConfig add UptimeMetrics to standard meterBinders Jan 13, 2025
@osipxd osipxd force-pushed the ktor-server-metrics-micrometer/uptime-metrics branch from 7e5820e to 326d32c Compare January 13, 2025 13:02
@osipxd osipxd enabled auto-merge (squash) January 13, 2025 13:03
@osipxd osipxd merged commit e6df3a2 into ktorio:main Jan 13, 2025
13 of 15 checks passed
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.

3 participants