You've already forked prometheus-fail2ban-exporter
move function
This commit is contained in:
@ -37,3 +37,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
|
||||
c.collectFileErrors(ch)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Collector) appendErrorForPath(path string) {
|
||||
c.fileMap[path].readErrors++
|
||||
}
|
||||
|
@ -19,6 +19,3 @@ func (c *Collector) WriteTextFileMetrics(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Collector) appendErrorForPath(path string) {
|
||||
c.fileMap[path].readErrors++
|
||||
}
|
||||
|
Reference in New Issue
Block a user