Skip to content

Expose Operating System information as an info contributor #28907

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

Conversation

jonatan-ivanov
Copy link
Member

This InfoContributor adds Operating System related details to actuator's info endpoint as part of the Enhanced Observability effort: #25476
When configured, it looks like this:

{
  "os": {
    "name": "Mac OS X",
    "version": "10.16",
    "arch": "x86_64"
  }
}

or

{
  "os": {
    "name": "Linux",
    "version": "5.4.0-1051-gke",
    "arch": "amd64"
  }
}

I'm thinking if we should call out in the docs that the version is the os.version Java system property and because certain Operating Systems use multiple versions for the same thing, on these Operating Systems, the version string can be different on different JVMs (but on the same OS) if the JVM implementations use different version sources.
E.g.: on my Mac, Java 8 says 10.16 while Java 17 says 11.5. Both mean the same thing but 10.16 is the "backward-compatible" version from the OS X era while 11.5 is the new version from the macOS times. As far as I saw, Linux does not have such problems (did not try on Windows). :)

@jonatan-ivanov jonatan-ivanov mentioned this pull request Dec 5, 2021
15 tasks
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 5, 2021
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 10, 2021
@philwebb philwebb added this to the 2.7.x milestone Dec 10, 2021
@snicoll snicoll self-assigned this Jan 4, 2022
@snicoll snicoll changed the title OS Info Contributor Expose Operating System information as an info contributor Jan 4, 2022
@snicoll snicoll modified the milestones: 2.7.x, 2.7.0-M1 Jan 4, 2022
snicoll pushed a commit that referenced this pull request Jan 4, 2022
snicoll added a commit that referenced this pull request Jan 4, 2022
@snicoll snicoll closed this in 988decd Jan 4, 2022
@jonatan-ivanov jonatan-ivanov deleted the os-info-contributor branch January 4, 2022 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants