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 prysm version to prometheus #8527

Conversation

eklm
Copy link
Contributor

@eklm eklm commented Feb 27, 2021

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Adds prysm version as prometheus metric

Which issues(s) does this PR fix?

Fixes #8516

Other notes for review
Also added commit hash

@eklm eklm requested a review from a team as a code owner February 27, 2021 18:02
)

var prysmInfo = promauto.NewGauge(prometheus.GaugeOpts{
Name: "prysm_info",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Name: "prysm_info",
Name: "prysm_version",

or prysm_version_and_committ is fine too

@codecov
Copy link

codecov bot commented Feb 27, 2021

Codecov Report

❗ No coverage uploaded for pull request base (develop@f973924). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #8527   +/-   ##
==========================================
  Coverage           ?   58.12%           
==========================================
  Files              ?      460           
  Lines              ?    32950           
  Branches           ?        0           
==========================================
  Hits               ?    19151           
  Misses             ?    10894           
  Partials           ?     2905           

})

func init() {
prysmInfo.Set(float64(1))
Copy link
Member

Choose a reason for hiding this comment

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

How does this work? It always sets the version to 1?

Copy link
Member

Choose a reason for hiding this comment

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

🤦 nevermind i get it

@rauljordan rauljordan added the Ready For Review A pull request ready for code review label Mar 1, 2021
@prylabs-bulldozer prylabs-bulldozer bot merged commit a3781e2 into prysmaticlabs:develop Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add beacon node version to prometheus metrics
4 participants