Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Add version flag #189

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Add version flag #189

merged 1 commit into from
Jul 21, 2020

Conversation

tboerger
Copy link
Contributor

To properly check which version of the exporter had been installed from
a binary it helps a lot to support the --version flag as the other
exporters. It's just a one-line fix to print the version information on
the CLI.

$ ./haproxy_exporter --version
haproxy_exporter, version 0.11.0 (branch: master, revision: 166e9ba36bfcd70f433a5665064c08ba0b9937df)
  build user:       tboerger@osiris.local
  build date:       20200721-09

To properly check which version of the exporter had been installed from
a binary it helps a lot to support the --version flag as the other
exporters. It's just a one-line fix to print the version information on
the CLI.

Signed-off-by: Thomas Boerger <thomas@webhippie.de>
Copy link
Member

@grobie grobie left a comment

Choose a reason for hiding this comment

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

Thank you!

@grobie grobie merged commit e281e0a into prometheus:master Jul 21, 2020
@tboerger tboerger deleted the version-flag branch July 21, 2020 18:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants