Add metric on election winners
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
ce6912047d
commit
032e59907b
@ -124,8 +124,11 @@ func RecordTipsetPoints(ctx context.Context, api api.FullNode, pl *PointList, ti
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
p := NewPoint("chain.election", 1)
|
||||
p.AddTag("miner", blockheader.Miner.String())
|
||||
pl.AddPoint(p)
|
||||
|
||||
p := NewPoint("chain.blockheader_size", len(bs))
|
||||
p = NewPoint("chain.blockheader_size", len(bs))
|
||||
pl.AddPoint(p)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user