Skip to content

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.

@brettwooldridge brettwooldridge force-pushed the dev branch 2 times, most recently from 6d319ab to 7cacd0f Compare September 23, 2024 20:03
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.

@kziel1 kziel1 force-pushed the update-micrometer branch from 7af08ed to 1be30e6 Compare January 22, 2025 09:43
@kziel1
Copy link
Author

kziel1 commented Jan 27, 2025

Yes, it will break Micrometer because of breaking changes in Prometheus (and simpleclient).
https://github.com/micrometer-metrics/micrometer/wiki/1.13-Migration-Guide

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