Documentation ¶
Index ¶
- func DecActiveIterCount()
- func Enabled() bool
- func IncActiveIterCount()
- func IncCodeNodeCount()
- func IncStateNodeCount()
- func IncStorageNodeCount()
- func Init()
- func RegisterDBCollector(name string, db DBStatsGetter)
- func RegisterGaugeFunc(name string, function func() float64)
- func Serve(addr string) *http.Server
- type DBStatsCollector
- type DBStatsGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecActiveIterCount ¶
func DecActiveIterCount()
DecActiveIterCount decrements the number of active iterators
func IncActiveIterCount ¶
func IncActiveIterCount()
IncActiveIterCount increments the number of active iterators
func IncCodeNodeCount ¶
func IncCodeNodeCount()
IncCodeNodeCount increments the number of code nodes processed
func IncStateNodeCount ¶
func IncStateNodeCount()
IncStateNodeCount increments the number of state nodes processed
func IncStorageNodeCount ¶
func IncStorageNodeCount()
IncStorageNodeCount increments the number of storage nodes processed
func RegisterDBCollector ¶
func RegisterDBCollector(name string, db DBStatsGetter)
RegisterDBCollector create metric collector for given connection
func RegisterGaugeFunc ¶
Types ¶
type DBStatsCollector ¶
type DBStatsCollector struct {
// contains filtered or unexported fields
}
DBStatsCollector implements the prometheus.Collector interface.
func NewDBStatsCollector ¶
func NewDBStatsCollector(dbName string, sg DBStatsGetter) *DBStatsCollector
NewDBStatsCollector creates a new DBStatsCollector.
func (DBStatsCollector) Collect ¶
func (c DBStatsCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (DBStatsCollector) Describe ¶
func (c DBStatsCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
type DBStatsGetter ¶
DBStatsGetter is an interface that gets sql.DBStats.