add access list metrics
This commit is contained in:
parent
d91faa8ba3
commit
abbb7b77ff
@ -31,6 +31,8 @@ type indexerMetricsHandles struct {
|
|||||||
transactions metrics.Counter
|
transactions metrics.Counter
|
||||||
// The total number of processed receipts
|
// The total number of processed receipts
|
||||||
receipts metrics.Counter
|
receipts metrics.Counter
|
||||||
|
// The total number of access list entries processed
|
||||||
|
accessListEntries metrics.Counter
|
||||||
// Time spent waiting for free postgres tx
|
// Time spent waiting for free postgres tx
|
||||||
tFreePostgres metrics.Timer
|
tFreePostgres metrics.Timer
|
||||||
// Postgres transaction commit duration
|
// Postgres transaction commit duration
|
||||||
@ -50,6 +52,7 @@ func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsHandles {
|
|||||||
blocks: metrics.NewCounter(),
|
blocks: metrics.NewCounter(),
|
||||||
transactions: metrics.NewCounter(),
|
transactions: metrics.NewCounter(),
|
||||||
receipts: metrics.NewCounter(),
|
receipts: metrics.NewCounter(),
|
||||||
|
accessListEntries: metrics.NewCounter(),
|
||||||
tFreePostgres: metrics.NewTimer(),
|
tFreePostgres: metrics.NewTimer(),
|
||||||
tPostgresCommit: metrics.NewTimer(),
|
tPostgresCommit: metrics.NewTimer(),
|
||||||
tHeaderProcessing: metrics.NewTimer(),
|
tHeaderProcessing: metrics.NewTimer(),
|
||||||
@ -61,6 +64,7 @@ func RegisterIndexerMetrics(reg metrics.Registry) indexerMetricsHandles {
|
|||||||
reg.Register(metricName(subsys, "blocks"), ctx.blocks)
|
reg.Register(metricName(subsys, "blocks"), ctx.blocks)
|
||||||
reg.Register(metricName(subsys, "transactions"), ctx.transactions)
|
reg.Register(metricName(subsys, "transactions"), ctx.transactions)
|
||||||
reg.Register(metricName(subsys, "receipts"), ctx.receipts)
|
reg.Register(metricName(subsys, "receipts"), ctx.receipts)
|
||||||
|
reg.Register(metricName(subsys, "access_list_entries"), ctx.accessListEntries)
|
||||||
reg.Register(metricName(subsys, "t_free_postgres"), ctx.tFreePostgres)
|
reg.Register(metricName(subsys, "t_free_postgres"), ctx.tFreePostgres)
|
||||||
reg.Register(metricName(subsys, "t_postgres_commit"), ctx.tPostgresCommit)
|
reg.Register(metricName(subsys, "t_postgres_commit"), ctx.tPostgresCommit)
|
||||||
reg.Register(metricName(subsys, "t_header_processing"), ctx.tHeaderProcessing)
|
reg.Register(metricName(subsys, "t_header_processing"), ctx.tHeaderProcessing)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user