mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-27 23:26:37 +00:00
textfile: set windows_exporter_collector_success to 0, if an errors occurs (#1775)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -304,8 +304,7 @@ func (c *Collector) collect(ch chan<- prometheus.Metric) error {
|
||||
}
|
||||
|
||||
for nicName, nicData := range data {
|
||||
if c.config.NicExclude.MatchString(nicName) ||
|
||||
!c.config.NicInclude.MatchString(nicName) {
|
||||
if c.config.NicExclude.MatchString(nicName) || !c.config.NicInclude.MatchString(nicName) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user