Skip to content

Conversation

@matzew
Copy link
Contributor

@matzew matzew commented Feb 7, 2018

Currently we get the following on the jvm_info

  • version
  • vendor

See:

jvm_info{version="1.8.0_151-b12",vendor="Oracle Corporation",} 1.0

But we do not get info if running on OpenJDK or not, hence adding the java.runtime.name property to the metrics. Result w/ the PR:

jvm_info{version="1.8.0_151-b12",vendor="Oracle Corporation",runtime="OpenJDK Runtime Environment",} 1.0

@matzew
Copy link
Contributor Author

matzew commented Feb 7, 2018

@brian-brazil mind to take a look here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

This line is getting a bit long, can you wrap it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@brian-brazil sure! will also update the javadoc, with the new value ;-)

@matzew matzew force-pushed the java_runtime_name branch from a07fb7d to 6c7b853 Compare February 7, 2018 14:12
@matzew
Copy link
Contributor Author

matzew commented Feb 7, 2018

@brian-brazil thanks for the review, I've wrapped the line

@brian-brazil brian-brazil merged commit 80b44dc into prometheus:master Feb 7, 2018
@brian-brazil
Copy link
Contributor

Thanks!

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.

2 participants