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

Feature request: add beacon node version to prometheus metrics #2225

Closed
mcdee opened this issue Feb 25, 2021 · 3 comments
Closed

Feature request: add beacon node version to prometheus metrics #2225

mcdee opened this issue Feb 25, 2021 · 3 comments
Labels
enhancement New feature or request low-hanging-fruit Easy to resolve, get it before someone else does!

Comments

@mcdee
Copy link
Contributor

mcdee commented Feb 25, 2021

Description

It would be handy to expose the version of the beacon node through a prometheus metric.

Version

Feature request.

Present Behaviour

The version is available through logs but that isn't so useful for remote monitoring.

Expected Behaviour

A prometheus metric like:

lighthouse_info{version="1.1.3"} 1

would be nice. Additional labels can be added for other items if desired (commit hash or whatever).

@paulhauner paulhauner added the enhancement New feature or request label Feb 25, 2021
@paulhauner
Copy link
Member

I agree, great suggestion.

@paulhauner paulhauner added the low-hanging-fruit Easy to resolve, get it before someone else does! label Jun 25, 2021
@paulhauner
Copy link
Member

This would be a good spare-time task for @realbigsean, @pawanjay176 or @macladson 🙂

bors bot pushed a commit that referenced this issue Jul 2, 2021
## Issue Addressed

#2225 

## Proposed Changes

Exposes the version given from the `lighthouse_version` crate to the Prometheus metrics server.

## Additional Info

- This metric appears in both the Beacon Node and Validator Client metrics servers.
- This is the simplest solution. It might be better to include the version and commit hash as separate labels rather than combined, however this would be more involved. Happy to do it that way if this is too cumbersome to use.
- The metric appears as:
```
# HELP lighthouse_info The build of Lighthouse running on the server
# TYPE lighthouse_info gauge
lighthouse_info{version="Lighthouse/v1.4.0-379664a+"} 1
```
@macladson
Copy link
Member

Resolved in #2427. Also see the corresponding PR in sigp/lighthouse-metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-hanging-fruit Easy to resolve, get it before someone else does!
Projects
None yet
Development

No branches or pull requests

3 participants