Add metric on election winners

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-12-11 00:36:40 +01:00
parent ce6912047d
commit 032e59907b
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -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)
}