Documentation ¶
Overview ¶
Package promstats contains adapters to publish stats variables to prometheus (http://prometheus.io)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(opts prometheus.Opts, v expvar.Var) prometheus.Collector
NewCollector returns a prometheus.Collector for a given stats var. It supports all stats var types except String, StringFunc and Rates. The returned collector still needs to be registered with prometheus registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.