27 Commits

Author SHA1 Message Date
39cdeb06c8 Add ability to specify SSH key via env var 2024-12-24 14:50:25 -08:00
fba785f313 Add metrics for AutosnapshotCounts 2023-08-16 10:14:11 -07:00
b410d1f1ec Add support for zfs-autosnapshot format 2023-08-16 10:09:20 -07:00
6899f331d6 Split out linux counts. 2023-01-15 12:58:02 -08:00
7ae07d5447 Add support for linux snapshot naming pattern. 2023-01-15 11:04:52 -08:00
5fd7f8266b Rename user for better clarity. 2023-01-14 14:25:47 -08:00
b4b5d5cc95 Actually close connection everytime through the loop.
Also, only use the client when err != nil (c could be non-nil when err == nil)
2022-11-28 14:11:44 -08:00
9c3a0b21cc Recreate the SSH connection every time through the loop. 2022-11-28 13:21:55 -08:00
ef80985ca6 go get -u 2022-04-10 09:06:51 -07:00
d00f6c32b7 Docker to build with new Go and module semantics. 2019-02-03 17:51:38 -08:00
a518150bfe Add link to /metrics and startup message. 2019-02-03 17:13:24 -08:00
15b40a2866 Drop precomputed ages. Show stats on front page. 2019-02-03 17:10:47 -08:00
af06cb6585 Start using go modules. 2019-02-03 17:10:31 -08:00
7779d97ca5 Log on every reconnect. 2018-10-12 20:20:57 -07:00
af0d5e0618 Update build env and add new default commandline. 2018-04-29 13:10:33 -07:00
4bd757cb9d Fix connection leak.
This was introduced when attempting to reuse ssh connection.
2017-12-03 10:03:03 -08:00
77a8833d70 Handle failure to dial. 2017-10-18 19:29:17 -07:00
d526a04717 Export timestamp in addition to age for snapshots. 2017-10-11 19:26:44 -07:00
0a8d33ce8d Allow multiple hosts to be scraped from single instance. 2017-10-10 20:58:05 -07:00
b93f1e01f8 Build with local source instead of counting on go get.
Better cache busting semantics.
2017-10-10 20:33:25 -07:00
e0a0069de4 Count snapshots per filesystem 2017-10-10 19:57:09 -07:00
5171c33d3c Set timeout and re-dial on any failures. 2017-10-10 10:08:00 -07:00
a61e9c7e1c Dockerfile, build and SSH keys to scrape snapshots from mom.xinu.tv. 2017-10-09 21:25:00 -07:00
8b07793b10 Update flag description. 2017-10-09 21:05:49 -07:00
e7d568551f Export metrics via prometheus. 2017-10-09 20:55:06 -07:00
10ab91179b Use SSH to list most recent snapshot age. 2017-10-09 20:29:01 -07:00
f08671aee9 Simple program to mimic scp. 2017-10-09 20:04:59 -07:00