Skip to content

Conversation

colinlyguo
Copy link
Contributor

@colinlyguo colinlyguo commented Jan 20, 2023

  1. Purpose or design rationale of this PR
    Add monitor metrics. Currently added metrics:
    (a) BridgeL1MsgSyncHeightGauge.
    (b) BridgeL2MsgSyncHeightGauge.

  2. Does this PR involve a new deployment, and involve a new git tag & docker image tag? If so, has tag in common/version.go been updated?
    Y.

  3. Is this PR a breaking change? If so, have it been attached a breaking-change label?
    N.

@ChuhanJin
Copy link
Contributor

46% (+0.18%) vs master 46%

@ChuhanJin
Copy link
Contributor

46% (+0.18%) vs master 46%

@colinlyguo colinlyguo marked this pull request as draft January 20, 2023 11:26
@ChuhanJin
Copy link
Contributor

46% (+0.09%) vs master 46%

@ChuhanJin
Copy link
Contributor

46% (+0.09%) vs master 46%

@Thegaram
Copy link
Contributor

Fyi we have an old (abandoned) PR that's similar: https://github.com/scroll-tech/scroll-node/pull/181. Might be interesting for reference.

Copy link
Contributor

@Thegaram Thegaram left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@colinlyguo colinlyguo marked this pull request as ready for review January 28, 2023 04:57
@ChuhanJin
Copy link
Contributor

46% (-0.05%) vs master 46%

@colinlyguo colinlyguo requested a review from Thegaram January 28, 2023 05:49
0xmountaintop
0xmountaintop previously approved these changes Jan 28, 2023
@mask-pp
Copy link
Contributor

mask-pp commented Jan 28, 2023

Suggest add metrics test case in tests/integration-test, i.g: runBridgeApp(t, "--metrics", "--metrics.addr", "localhost", "--metrics.port", "6060"). And then create a new http client to call metrics api and verify the result.

@ChuhanJin
Copy link
Contributor

46% (-0.05%) vs master 46%

0xmountaintop
0xmountaintop previously approved these changes Jan 28, 2023
@ChuhanJin
Copy link
Contributor

46% (-0.04%) vs master 46%

@ChuhanJin
Copy link
Contributor

46% (-0.04%) vs master 46%

@ChuhanJin
Copy link
Contributor

47% (+0.43%) vs master 46%

mask-pp
mask-pp previously approved these changes Jan 29, 2023
0xmountaintop
0xmountaintop previously approved these changes Jan 29, 2023
@ChuhanJin
Copy link
Contributor

47% (+0.48%) vs master 46%

@colinlyguo colinlyguo dismissed stale reviews from 0xmountaintop and mask-pp via ac2a0f7 January 30, 2023 04:00
@ChuhanJin
Copy link
Contributor

47% (-0.14%) vs master 47%

Thegaram
Thegaram previously approved these changes Jan 30, 2023
mask-pp
mask-pp previously approved these changes Jan 31, 2023
@Thegaram Thegaram dismissed stale reviews from mask-pp and themself via 6e3b937 January 31, 2023 09:54
@ChuhanJin
Copy link
Contributor

46% (-0.45%) vs master 47%

@ChuhanJin
Copy link
Contributor

46% (-0.04%) vs master 46%

@scroll-dev scroll-dev merged commit ea9c1c6 into staging Feb 1, 2023
@scroll-dev scroll-dev deleted the feat/add-bridge-monitor-metrics branch February 1, 2023 05:46
ChuhanJin pushed a commit that referenced this pull request Mar 15, 2023
# This is the 1st commit message:

feat: add monitor metrics (#262)

Co-authored-by: colinlyguo <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Péter Garamvölgyi <[email protected]>
# This is the commit message #2:

refactor(bridge): remove layer1 client in in layer1 relayer constructor (#274)

Co-authored-by: vincent <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
# This is the commit message #3:

fix: add gas multiplier (#275)


# This is the commit message #4:

feat(libzkp): use dylib instead of staticlib  (#266)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: colin <[email protected]>
Co-authored-by: colinlyguo <[email protected]>
# This is the commit message #5:

Revert "fix: add gas multiplier (#275)" (#279)


# This is the commit message #6:

build: add nightly-2022-12-10 rust-related builder image (#282)


# This is the commit message #7:

fix(bridge): compatible with DynamicFeeTxType not supported chain (#280)

Co-authored-by: colinlyguo <[email protected]>
# This is the commit message #8:

feat(contract): enable whitelist relayer (#272)

Co-authored-by: Péter Garamvölgyi <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
# This is the commit message #9:

perf(bridge): execute relayer loops independently (#258)

Co-authored-by: colin <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
# This is the commit message #10:

feat(bridge): confirm block based on "safe" and "finalized" tags (#265)


# This is the commit message #11:

feat: allow to override L2 deployment when address is provided (#293)


# This is the commit message #12:

feat(contracts): Add fee vault (#223)


# This is the commit message #13:

feat(confirmations): Upgrade confirm (#291)


# This is the commit message #14:

feat(coordinator): Enable set ws compression level. (#292)


# This is the commit message #15:

feat(roller&coordinator): upgrade lizkp to zkevm-0215 version (#281)

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: xinran chen <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
# This is the commit message #16:

build: update version to `alpha-v1.0` (#301)


# This is the commit message #17:

feat: import genesis batch during startup (#299)

Co-authored-by: HAOYUatHZ <[email protected]>
# This is the commit message #18:

feat(contracts): new bridge contracts (#288)

Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Thegaram <[email protected]>
Co-authored-by: colin <[email protected]>
# This is the commit message #19:

chore: upgrade l2geth dependency for trace type (#304)
ChuhanJin pushed a commit that referenced this pull request Mar 15, 2023
Co-authored-by: colinlyguo <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Péter Garamvölgyi <[email protected]>

refactor(bridge): remove layer1 client in in layer1 relayer constructor (#274)

Co-authored-by: vincent <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix: add gas multiplier (#275)

feat(libzkp): use dylib instead of staticlib  (#266)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: colin <[email protected]>
Co-authored-by: colinlyguo <[email protected]>

Revert "fix: add gas multiplier (#275)" (#279)

build: add nightly-2022-12-10 rust-related builder image (#282)

fix(bridge): compatible with DynamicFeeTxType not supported chain (#280)

Co-authored-by: colinlyguo <[email protected]>

feat(contract): enable whitelist relayer (#272)

Co-authored-by: Péter Garamvölgyi <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

perf(bridge): execute relayer loops independently (#258)

Co-authored-by: colin <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

feat(bridge): confirm block based on "safe" and "finalized" tags (#265)

feat: allow to override L2 deployment when address is provided (#293)

feat(contracts): Add fee vault (#223)

feat(confirmations): Upgrade confirm (#291)

feat(coordinator): Enable set ws compression level. (#292)

feat(roller&coordinator): upgrade lizkp to zkevm-0215 version (#281)

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: xinran chen <[email protected]>
Co-authored-by: Ubuntu <[email protected]>

build: update version to `alpha-v1.0` (#301)

feat: import genesis batch during startup (#299)

Co-authored-by: HAOYUatHZ <[email protected]>

feat(contracts): new bridge contracts (#288)

Co-authored-by: Haichen Shen <[email protected]>
Co-authored-by: Thegaram <[email protected]>
Co-authored-by: colin <[email protected]>

chore: upgrade l2geth dependency for trace type (#304)

feat(bridge): update the watcher and relayer based on the new contract (#305)

Co-authored-by: colinlyguo <[email protected]>
Co-authored-by: zimpha <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix incorrect block order during batch recovery (#311)

fix(bridge): fix batch proposer (#312)

Co-authored-by: HAOYUatHZ <[email protected]>
Co-authored-by: Péter Garamvölgyi <[email protected]>

fix: Flush buffered writer (#314)

fix(config): fix typos (#315)

feat(bridge): only update gas price oracle for exceeding diff threshold (#319)

fix(bridge): fix typos (#321)

feat(batch proposer): add time limit to commit batches (#323)

fix(db): fix `SetMaxOpenConns` (#328)

Fix(zkevm): fix zkevm bug for goerli.  (#334)

fix(build): jenkinsfile tag job optimized and fix (#331)

Co-authored-by: vincent <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>

fix: reduce finalize batch tx frequency (#332)

alpha inegration with multibin

fix makefile

fix lint

fix lint

try fix commit

op

fix lint

goimports

trigger ci

bugfix(libzkp): fix difficulty (#343)

fix(contract): forbid to call message queue and l2 messenger from l1 (#341)

Co-authored-by: HAOYUatHZ <[email protected]>

fix(roller): fix stack bug (#320)

Co-authored-by: HAOYUatHZ <[email protected]>
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

Successfully merging this pull request may close these issues.

6 participants