Skip to content

Commit

Permalink
Add metric on election winners
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <[email protected]>
  • Loading branch information
Jakub Sztandera committed Dec 11, 2019
1 parent ce69120 commit 032e599
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/stats/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 032e599

Please sign in to comment.