Remove config from collectors.
This commit is contained in:
parent
1ebda4c0aa
commit
f7563fe7a2
5 changed files with 8 additions and 21 deletions
|
|
@ -24,8 +24,7 @@ func init() {
|
|||
loadavg[0] = 0
|
||||
}
|
||||
|
||||
// Takes a prometheus registry and returns a new Collector exposing
|
||||
// load, seconds since last login and a list of tags as specified by config.
|
||||
// load1 stat.
|
||||
func NewLoadavgCollector() (Collector, error) {
|
||||
return &loadavgCollector{
|
||||
metric: prometheus.NewGauge(prometheus.GaugeOpts{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue