Fix all open go lint and vet issues
This commit is contained in:
parent
5289ffb270
commit
c703435790
37 changed files with 136 additions and 129 deletions
|
|
@ -44,8 +44,8 @@ func init() {
|
|||
Factories["textfile"] = NewTextFileCollector
|
||||
}
|
||||
|
||||
// Takes a registers a
|
||||
// SetMetricFamilyInjectionHook.
|
||||
// NewTextFileCollector returns a new Collector exposing metrics read from files
|
||||
// in the given textfile directory.
|
||||
func NewTextFileCollector() (Collector, error) {
|
||||
c := &textFileCollector{
|
||||
path: *textFileDirectory,
|
||||
|
|
@ -65,7 +65,7 @@ func NewTextFileCollector() (Collector, error) {
|
|||
return c, nil
|
||||
}
|
||||
|
||||
// textFile collector works via SetMetricFamilyInjectionHook in parseTextFiles.
|
||||
// Update implements the Collector interface.
|
||||
func (c *textFileCollector) Update(ch chan<- prometheus.Metric) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue