Skip to content

Pinning Prometheus to 0.12.x for Micrometer 1.8.x #2965

Closed
@jonatan-ivanov

Description

@jonatan-ivanov
Member

So that automated dependency update won't resolve newer versions

Activity

added this to the 1.8.2 milestone on Jan 11, 2022
added a commit that references this issue on Jan 11, 2022
dbc7a27
CEikermann

CEikermann commented on Jan 13, 2022

@CEikermann

Hey @jonatan-ivanov

Does micrometer not working with newer prometheus java client versions than 0.12.x ?

shakuzen

shakuzen commented on Jan 13, 2022

@shakuzen
Member

We don't generally upgrade minor versions of dependencies we compile against in patch releases. This is pinning the minor version for our 1.8.x maintenance branch. Micrometer should work with newer versions of the prometheus java client as long as they don't have breaking changes. Our main branch used for Micrometer 1.9 development compiles against the latest version of the prometheus java client without any corresponding changes that I remember.

CEikermann

CEikermann commented on Jan 13, 2022

@CEikermann

@shakuzen Thanks for clarification !

jonatan-ivanov

jonatan-ivanov commented on Jan 15, 2022

@jonatan-ivanov
MemberAuthor

Yepp, if you check our latest milestone release (1.9.0-M2 or you can check 2.x too), you can see that the Prometheus Client version is 0.14.1 there (latest at the time of creating that release).

lalomartins

lalomartins commented on Feb 8, 2022

@lalomartins

This triggers https://nvd.nist.gov/vuln/detail/CVE-2019-3826 if I upgrade micrometer-registry-prometheus. Should I file a separate issue?

checketts

checketts commented on Feb 8, 2022

@checketts
Contributor

Isn't that CVE is for the Prometheus server. I can't seem to find the Prometheus client exposure. Could you help me understand? Please open a separate ticket.

lalomartins

lalomartins commented on Feb 8, 2022

@lalomartins

I'm hardly an expert, I have about a month of JVM experience 😅 all I know is I upgraded micrometer-registry-prometheus to 1.8.2 and that bombed me with that CVE. I can try to inspect my dependency tree if it helps.

And yes it's almost certainly a separate ticket, but we might as well make sure this is the right place for it first 🤔

lalomartins

lalomartins commented on Feb 8, 2022

@lalomartins

Ok false alarm, sorry for the noise. Seems the OWASP dependency check tool is bad at handling hyphens 🤦 it thinks your package is Prometheus… I'll go hit their issue tracker instead. Sigh…

lalomartins

lalomartins commented on Feb 8, 2022

@lalomartins

FYI (and in case anyone arrives here via google) — jeremylong/DependencyCheck#1927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @checketts@CEikermann@lalomartins@jonatan-ivanov@shakuzen

        Issue actions

          Pinning Prometheus to 0.12.x for Micrometer 1.8.x · Issue #2965 · micrometer-metrics/micrometer