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

Review failing metrics #5

Closed
thepalbi opened this issue Mar 7, 2022 · 2 comments · Fixed by #9
Closed

Review failing metrics #5

thepalbi opened this issue Mar 7, 2022 · 2 comments · Fixed by #9
Assignees
Labels
bug Something isn't working

Comments

@thepalbi
Copy link
Owner

thepalbi commented Mar 7, 2022

Whenever running the exporter, in whichever network, some metrics keep failing.

exporter_1  | * error collecting metric Desc{fqName: "net_peers", help: "number of peers currently connected to the client", constLabels: {}, variableLabels: []}: 400 Bad Request: {"jsonrpc": "2.0", "id": 4, "error": {"code": -32601, "message": "Unsupported method [net_peerCount]. See available methods at https://docs.alchemy.com/alchemy/documentation/apis"}}
exporter_1  | * error collecting metric Desc{fqName: "eth_block_timestamp", help: "timestamp of the most recent block", constLabels: {}, variableLabels: []}: 400 Bad Request: {"jsonrpc": "2.0", "id": 10, "error": {"code": -32602, "message": "Invalid method parameter(s)."}}
exporter_1  | * error collecting metric Desc{fqName: "parity_net_active_peers", help: "number of active peers", constLabels: {}, variableLabels: []}: 400 Bad Request: {"jsonrpc": "2.0", "id": 3, "error": {"code": -32601, "message": "Unsupported method [parity_netPeers]. See available methods at https://docs.alchemy.com/alchemy/documentation/apis"}}
exporter_1  | * error collecting metric Desc{fqName: "parity_net_connected_peers", help: "number of peers currently connected to this client", constLabels: {}, variableLabels: []}: 400 Bad Request: {"jsonrpc": "2.0", "id": 3, "error": {"code": -32601, "message": "Unsupported method [parity_netPeers]. See available methods at https://docs.alchemy.com/alchemy/documentation/apis"}}
exporter_1  | * error collecting metric Desc{fqName: "eth_hashrate", help: "hashes per second that this node is mining with", constLabels: {}, variableLabels: []}: 400 Bad Request: {"jsonrpc": "2.0", "id": 2, "error": {"code": -32601, "message": "Unsupported method [eth_hashrate]. See available methods at https://docs.alchemy.com/alchemy/documentation/apis"}}
exporter_1  | * error collecting metric Desc{fqName: "eth_latest_block_transactions", help: "number of transactions in the latest block", constLabels: {}, variableLabels: []}: invalid argument 0: hex string without 0x prefix
exporter_1  | * collected metric "erc20_transfer_event" { label:<name:"contract" value:"0x3845badAde8e6dFF049820680d1F14bD3903a5d0" > label:<name:"symbol" value:"SAND" > histogram:<sample_count:2 sample_sum:26.25 > } was collected before with the same name and label values
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_starting", help: "block number at which current import started", constLabels: {}, variableLabels: []}: not syncing
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_current", help: "number of most recent block", constLabels: {}, variableLabels: []}: not syncing
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_highest", help: "estimated number of highest block", constLabels: {}, variableLabels: []}: not syncing

Maybe because this was originally designed for OpenEthereum?

@thepalbi thepalbi added the bug Something isn't working label Mar 7, 2022
@evictorero
Copy link
Collaborator

I am receiving less errors when starting with using mainnet with infura
parity metrics: it says in the readme that they are only available for OpenEthereum.
eth_block_timestamp: need to change an int parameter to bool and then it works.
eth_sync: It is not failing, it's returned not syncing beause the node seems not be synced.

I can try to make a PR tomorrow to fix all of the other errors and try to find a better solution for the sync ones.

@evictorero evictorero self-assigned this Mar 8, 2022
@evictorero evictorero linked a pull request Mar 8, 2022 that will close this issue
@evictorero
Copy link
Collaborator

Expected errors after PR changes using Infura:

exporter_1  | * error collecting metric Desc{fqName: "parity_net_active_peers", help: "number of active peers", constLabels: {}, variableLabels: []}: parity metrics are only available in OpenEthereum: The method parity_netPeers does not exist/is not available
exporter_1  | * error collecting metric Desc{fqName: "parity_net_connected_peers", help: "number of peers currently connected to this client", constLabels: {}, variableLabels: []}: parity metrics are only available in OpenEthereum: The method parity_netPeers does not exist/is not available
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_starting", help: "block number at which current import started", constLabels: {}, variableLabels: []}: not syncing
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_current", help: "number of most recent block", constLabels: {}, variableLabels: []}: not syncing
exporter_1  | * error collecting metric Desc{fqName: "eth_sync_highest", help: "estimated number of highest block", constLabels: {}, variableLabels: []}: not syncing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants