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

Add an endpoint in the backend API to expose Sensu version #1739

Closed
3 tasks
amdprophet opened this issue Jun 26, 2018 · 2 comments · Fixed by #2970
Closed
3 tasks

Add an endpoint in the backend API to expose Sensu version #1739

amdprophet opened this issue Jun 26, 2018 · 2 comments · Fixed by #2970
Assignees
Milestone

Comments

@amdprophet
Copy link
Member

amdprophet commented Jun 26, 2018

Todo

  • Determine the name of the endpoint (/info? /version?)
  • Expose sensu-backend version
  • Expose etcd cluster version
    • The etcd client (not the v3 client), exposes a GetVersion call.
@amdprophet
Copy link
Member Author

Here's an example response from the /info endpoint in 1.x:

{"sensu":{"version":"1.4.2","enterprise_version":"2.8.3","settings":{"hexdigest":"c88da3ee0b6e0a81c96c35158adbb229aa16d6c98b5348a7f121eaf15e1d2de6"}},"transport":{"name":"rabbitmq","keepalives":{"messages":0,"consumers":1},"results":{"messages":0,"consumers":1},"connected":true},"redis":{"connected":true},"servers":[{"id":"9285bf49-19b9-4313-9d92-1e3ad7547cd3","hostname":"localhost","address":"10.0.0.50","tasks":["check_request_publisher","metric_calculator","client_monitor","check_result_monitor","metric_counter_pruner"],"metrics":{"cpu":{"user":22432.21875,"system":1582.4453125}},"sensu":{"version":"1.4.2","enterprise_version":"2.8.3","settings":{"hexdigest":"c88da3ee0b6e0a81c96c35158adbb229aa16d6c98b5348a7f121eaf15e1d2de6"}},"tessen":{"enabled":false},"timestamp":1537205291}]}

@teekennedy
Copy link
Contributor

The 1.x /info endpoint contains some health and metrics info as well. Since we already have /health in 2.x, how about we specifically add a /version endpoint to return just version info? Nicer separation of concerns that way.

@palourde palourde changed the title Expose version / build information via API Add an endpoint in the backend API to expose Sensu version Sep 20, 2018
@annaplotkin annaplotkin added this to the 5.8.0 milestone May 13, 2019
@nikkictl nikkictl self-assigned this May 15, 2019
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 a pull request may close this issue.

6 participants