harmony-one / bounties

Bounty program is to help the community take part in the development of the Harmony blockchain. It covers from core feature to validator tooling, from dApp development to DeFi integration.
MIT License
59 stars 23 forks source link

[metrics] add Ethereum compatible metrics to prometheus #99

Closed LeoHChen closed 2 years ago

LeoHChen commented 2 years ago

Description

Add Ethereum compatible metrics to Prometheus endpoint built-in Harmony binary.

Context

Harmony support Prometheus metrics to expose consensus and p2p layer data. Ethereum compatible metrics can be added to provide better Ethereum compatible support.

Ethereum metrics are defined in this doc. https://geth.ethereum.org/docs/interface/metrics The original request was from this issue, https://github.com/harmony-one/harmony/issues/4008#issuecomment-1016052950

Some reference code implemented in FTM, https://github.com/Fantom-foundation/go-opera/pull/172/files

Acceptance Criteria

Reward

USD $1000 of Harmony ONE token

JackyWYX commented 2 years ago

Libp2p has a different p2p peer metric from Ethereum, E.g. Ingress/Egress. Please adjust accordingly :)

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 5270.673 ONE (1000.75 USD @ $0.19/ONE) attached to it.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Cancelled


Work has been started.

These users each claimed they can complete the work by 264 years, 8 months from now. Please review their action plans below:

1) tawanc has started work.

Tawafhkoc niffuikhccghiyteruijurrdh 2) harjas27 has started work.

will Add Ethereum compatible metrics to Prometheus endpoint built-in Harmony binary. 4) aapatni has started work.

  1. Learn about Ethereum metrics
  2. Understand the harmony repo and begin developing
  3. Build test cases and reports
  4. Documentation

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 5270.673 ONE (787.49 USD @ $0.15/ONE) has been submitted by:

  1. @harjas27

@leohchen please take a look at the submitted work:


LeoHChen commented 2 years ago

PR merged, will payout this week.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 5270.673 ONE (670.13 USD @ $0.13/ONE) attached to this issue has been cancelled by the bounty submitter