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

[APPENG-849] Fix prometheus client cant cast metric type gauge to info issue #86

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

Gravewalker666
Copy link
Contributor

@Gravewalker666 Gravewalker666 commented Jul 25, 2024

Context

This pull request attempts to fix the micrometer prometheus metrics cant cast metric type gauge to info issue by using dot based format as a workaround.

Checklist

Details from ticket: APPENG-849

Update platform libraries matrix tests to run with boot 3.3

Tracking the specific libraries here:

[https://docs.google.com/spreadsheets/d/1cogv7V6ofZv1urcBYYrj91f3VzKg-e92DltiiRgqndc/edit?gid=618138693#gid=618138693a|https://docs.google.com/spreadsheets/d/1cogv7V6ofZv1urcBYYrj91f3VzKg-e92DltiiRgqndc/edit?gid=618138693#gid=618138693a|smart-link]

@Gravewalker666 Gravewalker666 requested a review from a team as a code owner July 25, 2024 14:09
@@ -34,7 +34,9 @@
@Slf4j
public class TkmsMetricsTemplate implements ITkmsMetricsTemplate, InitializingBean {

public static final String GAUGE_LIBRARY_INFO = "tw_library_info";
Copy link
Contributor

Choose a reason for hiding this comment

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

But is it going to create issues with older version of SB?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, now that I think about it, it should not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't look like it, already tested with 3.2 as well.

Micrometer has been supporting both underscore and dot.

This one looks more like a bug from their end cuz even now they support underscore just that this doesn't get properly converted to an info type.

@Gravewalker666 Gravewalker666 merged commit 0e34b7d into master Jul 25, 2024
14 checks passed
@Gravewalker666 Gravewalker666 deleted the temp branch July 25, 2024 14:39
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