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] - Additional Fields #2

Open
htafolla opened this issue Jun 12, 2020 · 2 comments
Open

[Feature Request] - Additional Fields #2

htafolla opened this issue Jun 12, 2020 · 2 comments

Comments

@htafolla
Copy link

Thanks for the great work, it has saved me many hours!! A couple of fields are missing to fully complete the challenge. I am hoping they are easy for you to add.

  1. Network Version (version->build):
    http post https://rpc.betanet.near.org jsonrpc=2.0 method=status params:='[]' id=dontcare

  2. Local Node Version (version->build):
    http post http://localhost:3030 jsonrpc=2.0 method=status params:='[]' id=dontcare

  3. Epoch Start Height (epoch_start_height):
    http post https://rpc.testnet.near.org jsonrpc=2.0 method=validators params:='[null]' id=dontcare

@masknetgoal634
Copy link
Owner

masknetgoal634 commented Jun 13, 2020

I'm not sure how to pass a string values of the local/network version to Prometheus but i converted them to a float values, may be it will helpful. new_metrics added:

  • near_epoch_start_height
  • near_version_number
  • near_dev_version_number
  • near_version_build
  • near_dev_version_build

For instance we can to alert when our version not matched with a version of a public node

- alert: NearVersionBuildNotMatched
    expr: near_version_number != near_dev_version_number
    for: 5m
    labels:
      severity: warning
   ....

@htafolla
Copy link
Author

Thank you so much! I will get this integrated today. I would like to recognize your effort on the Discord channel. What is your discord username?

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

No branches or pull requests

2 participants