Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

cmd/manager: expose version info#284

Merged
seanmalloy merged 4 commits intoKohlsTechnology:masterfrom
akavel:version-info
Feb 6, 2020
Merged

cmd/manager: expose version info#284
seanmalloy merged 4 commits intoKohlsTechnology:masterfrom
akavel:version-info

Conversation

@akavel
Copy link
Copy Markdown

@akavel akavel commented Feb 4, 2020

Description

Add a Prometheus metric exposing eunomia version, and a command-line flag doing the same. This makes it easy to find out what version of eunomia is running in a cluster (via metric) or is available for running (via flag).

Also, in issue templates, show a command that can be used to easily retrieve eunomia version from a cluster. This is intended to help issue reporters give us precise information with as little effort on their side as possible.

Fixes #260

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Unit tests and e2e tests updated — simple change, tests not added
  • Documentation updated — N/A

Mateusz Czapliński added 3 commits February 4, 2020 15:34
…ology#260)

Add a Prometheus-formatted metric which provides an easy way to check
version of eunomia running.

Issue KohlsTechnology#260.
…chnology#260)

In issue templates, show a command that can be used to easily retrieve
eunomia version from a cluster.

Issue KohlsTechnology#260.
@akavel
Copy link
Copy Markdown
Author

akavel commented Feb 4, 2020

Screenshot 2020-02-04 at 15 32 32

Screenshot 2020-02-04 at 15 31 35

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 4, 2020

Codecov Report

Merging #284 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #284   +/-   ##
=====================================
  Coverage       0%     0%           
=====================================
  Files           1      1           
  Lines          52     52           
=====================================
  Misses         52     52

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6de867...cc15a59. Read the comment docs.

vinny-sabatini
vinny-sabatini previously approved these changes Feb 5, 2020
Copy link
Copy Markdown
Member

@vinny-sabatini vinny-sabatini left a comment

Choose a reason for hiding this comment

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

LGTM

In the future I think it might be useful to include the git SHA1 in here too.

@seanmalloy seanmalloy added this to the v0.1.3 milestone Feb 6, 2020
Copy link
Copy Markdown
Contributor

@seanmalloy seanmalloy left a comment

Choose a reason for hiding this comment

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

Please also add version.Branch, version.BuildDate, and version.GitSHA1.

Branch string
BuildDate string
GitSHA1 string

When printing eunomia version (via Prometheus metrics and --version
flag), also print build details (date, git SHA, branch). This extra
information may also be helpful when debugging.
@seanmalloy seanmalloy merged commit 62b9273 into KohlsTechnology:master Feb 6, 2020
@akavel
Copy link
Copy Markdown
Author

akavel commented Feb 7, 2020

Screenshot 2020-02-06 at 15 31 31

Screenshot 2020-02-06 at 15 51 35

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Expose Eunomia Version Information To End User

3 participants