fork of indigo with slightly nicer lexgen

add gauge bgs_connected_inbound

authored by Brian Olson and committed by Brian Olson 6373ce47 7b183a08

Changed files
+9
bgs
+4
bgs/fedmgr.go
··· 475 475 476 476 cursor := host.Cursor 477 477 478 + connectedInbound.Inc() 479 + defer connectedInbound.Dec() 480 + // TODO:? maybe keep a gauge of 'in retry backoff' sources? 481 + 478 482 var backoff int 479 483 for { 480 484 select {
+5
bgs/metrics.go
··· 47 47 Help: "The total number of external users created", 48 48 }) 49 49 50 + var connectedInbound = promauto.NewGauge(prometheus.GaugeOpts{ 51 + Name: "bgs_connected_inbound", 52 + Help: "Number of inbound firehoses we are consuming", 53 + }) 54 + 50 55 var compactionDuration = promauto.NewHistogram(prometheus.HistogramOpts{ 51 56 Name: "compaction_duration", 52 57 Help: "A histogram of compaction latencies",