Merge pull request #75 from prometheus/remove-attribute-module
Use flags instead of config and remove attributes
This commit is contained in:
commit
b539481503
23 changed files with 87 additions and 162 deletions
|
|
@ -24,7 +24,7 @@ var (
|
|||
)
|
||||
|
||||
type netDevCollector struct {
|
||||
config Config
|
||||
|
||||
metrics map[string]*prometheus.GaugeVec
|
||||
}
|
||||
|
||||
|
|
@ -32,11 +32,10 @@ func init() {
|
|||
Factories["netdev"] = NewNetDevCollector
|
||||
}
|
||||
|
||||
// Takes a config struct and prometheus registry and returns a new Collector exposing
|
||||
// Takes a prometheus registry and returns a new Collector exposing
|
||||
// network device stats.
|
||||
func NewNetDevCollector(config Config) (Collector, error) {
|
||||
func NewNetDevCollector() (Collector, error) {
|
||||
return &netDevCollector{
|
||||
config: config,
|
||||
metrics: map[string]*prometheus.GaugeVec{},
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue