graph-node provides the following metrics via Prometheus endpoint on 8040 port by default:
deployment_block_processing_durationMeasures duration of block processing for a subgraph deploymentdeployment_block_trigger_countMeasures the number of triggers in each block for a subgraph deploymentdeployment_countCounts the number of deployments currently being indexed by the graph-node.deployment_eth_rpc_errorsCounts eth rpc request errors for a subgraph deploymentdeployment_eth_rpc_request_durationMeasures eth rpc request duration for a subgraph deploymentdeployment_failedBoolean gauge to indicate whether the deployment has failed (1 == failed)deployment_handler_execution_timeMeasures the execution time for handlersdeployment_headTrack the head block number for a deployment. Example:
deployment_head{deployment="QmaeWFYbPwmXEk7UuACmkqgPq2Pba5t2RYdJtEyvAUmrxg",network="mumbai",shard="primary"} 19509077deployment_host_fn_execution_timeMeasures the execution time for host functionsdeployment_reverted_blocksTrack the last reverted block for a subgraph deploymentdeployment_sync_secstotal time spent syncingdeployment_transact_block_operations_durationMeasures duration of committing all the entity operations in a block and updating the subgraph pointerdeployment_trigger_processing_durationMeasures duration of trigger processing for a subgraph deploymenteth_rpc_errorsCounts eth rpc request errorseth_rpc_request_durationMeasures eth rpc request durationethereum_chain_head_numberBlock number of the most recent block synced from Ethereum. Example:
ethereum_chain_head_number{network="mumbai"} 20045294metrics_register_errorsCounts Prometheus metrics register errorsmetrics_unregister_errorsCounts Prometheus metrics unregister errorsquery_cache_status_countCount toplevel GraphQL fields executed and their cache statusquery_effort_msMoving average of time spent running queriesquery_execution_timeExecution time for successful GraphQL queriesquery_result_maxthe maximum size of a query result (in CacheWeight)query_result_sizethe size of the result of successful GraphQL queries (in CacheWeight)query_semaphore_wait_msMoving average of time spent on waiting for postgres query semaphorequery_blocks_behindA histogram for how many blocks behind the subgraph head queries are being made at. This helps inform pruning decisions.query_kill_rateThe rate at which the load manager kills queriesregistered_metricsTracks the number of registered metrics on the nodestore_connection_checkout_countThe number of Postgres connections currently checked outstore_connection_error_countThe number of Postgres connections errorsstore_connection_wait_time_msAverage connection wait time