Commit Graph

45 Commits

Author SHA1 Message Date
69e0230949 refactor: use py mongo struct + stdlib log
+ restructure project
2022-11-09 15:59:30 +02:00
bd667c0fc1 improve direct string warning 2022-11-08 08:57:39 +02:00
c52c9aa9d9 Use actual fork of go.mod
All checks were successful
continuous-integration/drone Build is passing
It needed a lot of thinking...
2022-11-07 01:24:29 +02:00
3b52df7cba lint 2022-11-07 01:23:20 +02:00
fc9c1671b6 move local path to temporary git repo
Some checks failed
continuous-integration/drone Build is failing
2022-11-07 00:59:11 +02:00
a6e8b4becc add drone?
Some checks reported errors
continuous-integration/drone Build was killed
2022-11-07 00:26:12 +02:00
e45bf4739b go mod vendor
+ move k8s.io/apimachinery fork from go.work to go.mod
(and include it in vendor)
2022-11-07 00:26:05 +02:00
d08bbf250a fix double close on chan 2022-11-07 00:07:25 +02:00
689ecbcca3 update deps: tailer 2022-11-06 23:37:26 +02:00
8961a4237f fix mongo structs 2022-11-06 23:17:13 +02:00
ce3f67754a tidy logging 2022-11-06 22:29:03 +02:00
1424096176 parse partial lines 2022-11-06 22:06:48 +02:00
532575a87b prom mongo: use seconds instead of nanoseconds 2022-11-06 20:37:43 +02:00
80ea6b7821 globalize mongo metrics
multiple calls for options would duplicate/override
2022-11-06 19:04:03 +02:00
368359a043 rename files 2022-11-06 18:53:29 +02:00
ce066129b3 prom: homogenize metrics with python prototype 2022-11-06 18:52:15 +02:00
28a518be7f prometheus prefix 2022-11-06 17:02:49 +02:00
b323e34ff2 prom: improve helptext 2022-11-06 16:56:12 +02:00
c93b41dcfe mongo: indexes 2022-11-06 16:52:22 +02:00
1744b94cef fix catchupped metric 2022-11-06 16:35:49 +02:00
639cb6addd set mongo structs strictly in one place
+ split file
2022-11-06 16:33:57 +02:00
2fa1c6cd7b remove sigCatchupped; it has no use after refactor
(refactor: used to not have WithLabelValues)
2022-11-06 16:11:23 +02:00
d142fa9295 perf: cache catchupped status 2022-11-06 16:09:28 +02:00
77cf4b9dd8 don't drop lines at all, block instead 2022-11-06 16:08:11 +02:00
1ddc479e4b log errors in lines, and ignore empty lines 2022-11-06 15:57:18 +02:00
b03c845406 refactor prometheus metrics 2022-11-06 15:57:05 +02:00
a56e6d1ffc remove synced() for shipper
+ shipFile cleanup after itself
2022-11-06 15:46:07 +02:00
60b893d960 fix: basename in prometheus 2022-11-06 15:23:20 +02:00
66c71faf10 Add Dockerfile 2022-11-06 15:06:11 +02:00
859985e3c3 Add README.md 2022-11-06 15:04:16 +02:00
1617658d1a defer closing tailable file via subcontext
+ update deps for defer f.Close()
2022-11-06 14:41:09 +02:00
4554ddb188 update deps 2022-11-06 04:27:10 +02:00
d181172c30 pick up existing files on start 2022-11-06 04:13:59 +02:00
6570a2b3f8 rename mower.go 2022-11-06 03:59:42 +02:00
f5240274ec it is shipping and parsing 2022-11-06 03:43:52 +02:00
36b971a930 fix err handling bug 2022-11-06 02:17:00 +02:00
20d867bfcb work around mongo database uri parsing 2022-11-06 02:16:54 +02:00
908ac5c52a submit: complete local sender refactor 2022-11-06 01:45:19 +02:00
270737516c use baseName for prometheus 2022-11-06 01:44:29 +02:00
e2b232ba63 move ctx explicit 2022-11-06 01:21:30 +02:00
6717063236 refactor sender to be per-file 2022-11-06 01:21:14 +02:00
f920d03bc8 add TODOs from gitea issues 2022-11-03 12:42:59 +02:00
55d47f30ec rename package to logmower-shipper 2022-11-03 12:31:01 +02:00
d6f3d8c56f refactor and continue implementation of whole pkg 2022-11-03 12:28:18 +02:00
70ec46805f initial commit 2022-10-11 10:54:46 +03:00