Skip to content

Conversation

ashie
Copy link
Member

@ashie ashie commented Dec 30, 2022

Since initialization parameters of Prometheus::Client::Push are changes since prometheus-client v3.0, we need to adapt to it.

https://github.com/prometheus/client_ruby/releases/tag/v3.0.0

@ashie ashie marked this pull request as ready for review December 30, 2022 08:01
@ashie ashie requested a review from cosmo0920 December 30, 2022 08:03
Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

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

Looks good. I'd confirmed that prometheus client 3.0 or later uses keyword arguments.

@ashie
Copy link
Member Author

ashie commented Jan 3, 2023

Thanks for your review!

I'll recheck this before merging this (especially the specification of grouping_key).

@kenhys kenhys mentioned this pull request Jul 12, 2023
ashie and others added 2 commits March 19, 2025 14:00
The compatibility was broken since 3.0.0,
so it should be >= 3.

Signed-off-by: Kentaro Hayashi <[email protected]>
@kenhys kenhys force-pushed the support-prometheus-client-3.0+ branch from e16d83e to 8d87b9b Compare March 19, 2025 05:05
It pass rake spec test with:

* prometheus-client 2.1.0
* prometheus-client 3.0.0
* prometheus-client 4.2.4

Signed-off-by: Kentaro Hayashi <[email protected]>
@kenhys kenhys force-pushed the support-prometheus-client-3.0+ branch from 8d87b9b to e564d42 Compare March 19, 2025 05:06
@kenhys kenhys requested review from Watson1978 and daipom March 19, 2025 05:16
Copy link

@Watson1978 Watson1978 left a comment

Choose a reason for hiding this comment

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

👍🏻

@kenhys kenhys merged commit a743407 into master Mar 21, 2025
6 checks passed
@kenhys kenhys deleted the support-prometheus-client-3.0+ branch March 21, 2025 01:15
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.

4 participants