mirror of
https://github.com/chylex/Apache-Prometheus-Exporter.git
synced 2025-09-16 11:24:52 +02:00
Compare commits
2 Commits
8a9a5b9aaa
...
main
Author | SHA1 | Date | |
---|---|---|---|
c2f47cf736
|
|||
f942b9830d
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -25,7 +25,7 @@ checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "apache_prometheus_exporter"
|
name = "apache_prometheus_exporter"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"hyper",
|
"hyper",
|
||||||
|
@@ -161,6 +161,11 @@ impl LogWatcher {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
while let Ok(Some(_)) = self.state.lines.next_line().await {
|
||||||
|
// There are occasional spurious file creation events, so reading
|
||||||
|
// from the beginning would read lines that were already counted.
|
||||||
|
}
|
||||||
|
|
||||||
continue 'read_loop;
|
continue 'read_loop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user