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

Update micrometer #2223

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft

Conversation

kziel1
Copy link

@kziel1 kziel1 commented Jul 30, 2024

Needed to streamline premetheus versions in the company I work for. Migration guide that could be needed for some use cases: https://github.com/micrometer-metrics/micrometer/wiki/1.13-Migration-Guide

@kziel1 kziel1 marked this pull request as draft July 30, 2024 12:34
@kziel1
Copy link
Author

kziel1 commented Aug 1, 2024

Changes suggested in the issue #2225
Generating a sample value hasn't been translated, hence tests not compiling.

metricValueFunction.apply(v)
Collection<GaugeSnapshot.GaugeDataPointSnapshot> gaugeDataPointSnapshots = new ArrayList<>();
poolStatsMap.forEach((k, v) -> gaugeDataPointSnapshots.add(
new GaugeSnapshot.GaugeDataPointSnapshot(metricValueFunction.apply(v), Labels.of(k), null)
Copy link

@henriAbel henriAbel Oct 17, 2024

Choose a reason for hiding this comment

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

Labels.of(k) expects at least 2 arguments.
I think correct would be Labels.of("pool", k)

Copy link
Author

Choose a reason for hiding this comment

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

makes sense, I pushed the change suggestion

@brettwooldridge
Copy link
Owner

Would this change break existing 1.5 micrometer users? It appears like it would.

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