Export metrics for watcher config and upstream and external chain heads (#497)

* Add a cli to export chain head block numbers

* Use ETH RPC endpoint and allow env overrides

* Use ethers provider

* Export upstream chain head block number in watcher metrics

* Remove unnecessary exports

* Upgrade package versions

* Fix defaults usage

* Export watcher config in metrics

* Add metric for watcher sync mode

* Remove cache flag from watcher config metrics

* Update watcher config field names
This commit is contained in:
prathamesh0
2023-12-19 15:23:25 +05:30
committed by GitHub
parent 37732d1b1e
commit 78e43bc088
18 changed files with 197 additions and 43 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
{
"name": "@cerc-io/graph-node",
"version": "0.2.78",
"version": "0.2.79",
"main": "dist/index.js",
"license": "AGPL-3.0",
"devDependencies": {
"@cerc-io/solidity-mapper": "^0.2.78",
"@cerc-io/solidity-mapper": "^0.2.79",
"@ethersproject/providers": "^5.4.4",
"@graphprotocol/graph-ts": "^0.22.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
@@ -51,9 +51,9 @@
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/assemblyscript": "0.19.10-watcher-ts-0.1.2",
"@cerc-io/cache": "^0.2.78",
"@cerc-io/ipld-eth-client": "^0.2.78",
"@cerc-io/util": "^0.2.78",
"@cerc-io/cache": "^0.2.79",
"@cerc-io/ipld-eth-client": "^0.2.79",
"@cerc-io/util": "^0.2.79",
"@types/json-diff": "^0.5.2",
"@types/yargs": "^17.0.0",
"bn.js": "^4.11.9",