Commit Graph
100 Commits
Author SHA1 Message Date
Ruakij 1e37f35e38 Moved creation of writeApi to main and set default-tag hostname 2021-12-06 12:44:26 +01:00
Ruakij d0be44c1af Fix coding-style 2021-12-06 12:42:34 +01:00
Ruakij 57cf6fb0a7 Add npm prune (wont do much here) 2021-12-03 10:50:50 +01:00
Ruakij 298a96bf16 apk-install on 1 line and delete cache when done 2021-12-03 10:48:28 +01:00
Ruakij b98dff947d Refactored packet to use new code-style (for got last time :/) 2021-12-02 14:54:32 +01:00
Ruakij 0f6c5b6b0e Change baseimage from node to node-alpine
Size drastically decreased
2021-12-02 14:06:21 +01:00
Ruakij cc9e4c7258 Fix flush using local vars instead of this-vars 2021-12-02 13:41:23 +01:00
Ruakij 56ac283544 Refactored code to match code-style 2021-12-02 13:40:56 +01:00
Ruakij 9095e21e6f Add handshakeStage as metric 2021-12-01 14:24:03 +01:00
Ruakij d14e469ef4 Removed error-logging from RegexBlockStream FIXME 2021-11-29 15:35:53 +01:00
Ruakij 99a3e13d77 Added further exception to error-event from tcpdump 2021-11-29 15:35:36 +01:00
Ruakij b5c895674e Merge branch 'f_gracefulShutdown' into dev 2021-11-29 15:34:56 +01:00
Ruakij 86d2b8c1cf Added event for SIGTERM and SIGINT 2021-11-29 15:34:19 +01:00
Ruakij 7ff6556d51 Merge branch 'f_userHelper' into dev 2021-11-29 15:12:39 +01:00
Ruakij 16388c73e5 Added additional check for packetStream 2021-11-29 15:11:14 +01:00
Ruakij 8211f55b89 Added check for tcpdump-process stdout 2021-11-29 15:10:42 +01:00
Ruakij c28bbaaada Moved Stream-creations outside 2021-11-29 15:09:59 +01:00
Ruakij 4ddbe3f06f Implemented userHelper methods to detect if streams have data before timeout 2021-11-29 15:09:21 +01:00
Ruakij 0d84079ce1 Added packetType to tag-fields 2021-11-29 14:20:29 +01:00
Ruakij 1bf761970f Added error-handling for regexBlockStream 2021-11-29 13:45:36 +01:00
Ruakij 5a0118aedd Added error-handling for process 2021-11-29 13:45:15 +01:00
Ruakij 0709db0ddf Changed exit-log to debug 2021-11-29 13:44:37 +01:00
Ruakij c27761322c Catch start-error from tcpdump
tcpdump writes to stderr at the beginning
2021-11-29 13:18:29 +01:00
Ruakij 45a11753de Add own logger for tcpdump 2021-11-29 13:16:23 +01:00
Ruakij d482001cdc Merge branch 'f_docker' into dev 2021-11-29 13:12:00 +01:00
Ruakij a681bbd2d2 Removed sudo as container runs as root anyways 2021-11-29 13:11:11 +01:00
Ruakij d9ee804c3b Removed src-references as hats the workdir 2021-11-29 13:10:44 +01:00
Ruakij e320d8670b Add installation of package tcpdump 2021-11-29 13:10:05 +01:00
Ruakij 2d824543d1 fixed cmd 2021-11-29 13:09:49 +01:00
Ruakij 6e080907d1 Merge branch 'code-smell_handling' into dev 2021-11-29 09:58:04 +01:00
Ruakij 91c3aca9e2 Add function to get handshakeStage from keyInfo 2021-11-29 09:57:33 +01:00
Ruakij 31ab10c3e1 Fix wrong var-name 2021-11-29 09:57:05 +01:00
Ruakij 8ff7211f0f Revert "Extract packetType handling in own function"
This reverts commit 227ba127f8.
2021-11-29 09:50:14 +01:00
Ruakij 2ae85ababb Extract keyInfo reading to helper-file 2021-11-29 09:37:28 +01:00
Ruakij 227ba127f8 Extract packetType handling in own function 2021-11-29 09:36:21 +01:00
Ruakij 8417de5756 Extract checks with if-statements 2021-11-29 09:35:17 +01:00
Ruakij 54eadf3bc3 Fixed Regex codesmells 2021-11-29 09:24:18 +01:00
Ruakij e39ebaac23 Fixed Regex codesmell 2021-11-29 09:23:08 +01:00
Ruakij 54d627d469 Fix typo 2021-11-29 09:20:38 +01:00
Ruakij ca3c37be0f Activating strict-mode 2021-11-29 09:16:49 +01:00
Ruakij 96b52e63a0 Add exit-handler with error-detection 2021-11-29 09:16:39 +01:00
Ruakij 3c5e941cba Creating & Attaching streams / Error-logger 2021-11-29 09:15:49 +01:00
Ruakij a468d7a57b Start tcpdump process 2021-11-29 09:14:50 +01:00
Ruakij 4ad5eba7e0 Change tag-srtting to recursive by field
This will properly set e.g. arrays
2021-11-26 21:03:11 +01:00
Ruakij 2646c9787e Changed key-checking to value-checking
This includes e.g. gettings, originally not included in keys
2021-11-26 21:00:15 +01:00
Ruakij 873f00b21b Remove deleting point and rename point to something useable 2021-11-26 19:17:43 +01:00
Ruakij 271554719e Remove wrong hint 2021-11-26 19:17:24 +01:00
Ruakij e18de63d7c Revert "Move catch into then-onRejected to fix resolving then anyways."
This reverts commit 2356040572.
2021-11-26 19:14:01 +01:00
Ruakij 2356040572 Move catch into then-onRejected to fix resolving then anyways. 2021-11-26 19:07:27 +01:00
Ruakij b0bbf0c71a Fixed wrong option-subname 2021-11-26 19:06:55 +01:00
Ruakij 37b78e7373 Fixed wrong logging-mode used 2021-11-26 18:54:09 +01:00
Ruakij c5e1bb4c64 Added info-log "ok" 2021-11-26 18:37:55 +01:00
Ruakij 3c29ed2000 Implemented CheckWriteApi by writing and then deleting a TestPoint 2021-11-26 18:37:34 +01:00
Ruakij ddf39b9433 Fixed require 2021-11-26 18:36:50 +01:00
Ruakij 3a927688d0 Changed fatal to error and added error handling to promise catch in main 2021-11-26 18:36:35 +01:00
Ruakij c51cfc1b14 Fixed missing require 2021-11-26 18:35:51 +01:00
Ruakij e1b2a7e016 Added influx checkBucket 2021-11-26 18:03:14 +01:00
Ruakij fc5900b0ba Added influx checkHealth 2021-11-26 17:55:51 +01:00
Ruakij 354ca32a61 Merge branch 'dev' into f_influx-checks 2021-11-26 17:47:59 +01:00
Ruakij d10e9bb2c6 Create influx-client 2021-11-26 17:43:42 +01:00
Ruakij 44cd3288cf Fixed stram not being in object-mode 2021-11-26 17:33:19 +01:00
Ruakij 3af4bb7cc6 Fixed wrong push 2021-11-26 17:33:07 +01:00
Ruakij 2a662e0bd1 Changed constructor to take influxDb 2021-11-26 17:32:31 +01:00
Ruakij d7a9530b68 Cleaned up Promise 2021-11-26 17:31:31 +01:00
Ruakij 7de2250983 Added client-apis 2021-11-26 17:30:46 +01:00
Ruakij bb3d843895 Fixed wrong joining 2021-11-25 18:42:45 +01:00
Ruakij 9472ed9198 Fix wrong usage of join()
Default splitter is ',' but we want nothing
2021-11-25 18:42:26 +01:00
Ruakij dcd0ce8111 Added lib string-argv to extract bin and args from cmd 2021-11-25 18:32:43 +01:00
Ruakij 1a9ced0bb8 Changed exec to only wrap spawn 2021-11-25 18:32:07 +01:00
Ruakij d77e3f8844 Fixed naming 2021-11-25 18:30:50 +01:00
Ruakij e715cc1cac Removed unused env-vars for now 2021-11-25 13:59:45 +01:00
Ruakij cf1b300f6a Changed documentation to remarks section 2021-11-25 03:14:24 +01:00
Ruakij 450f162cda Implemented InfluxPointWriter for writing into influx with stream 2021-11-25 03:13:05 +01:00
Ruakij 7ebcf573b9 Implemented stream to transform packets to datapoints 2021-11-25 02:54:43 +01:00
Ruakij 38985ea9e2 Remove debug-logging for now 2021-11-25 01:48:41 +01:00
Ruakij 1976838d8a Remove unecessary properties 2021-11-25 01:48:07 +01:00
Ruakij a1ce7a848b Replaced MoreData and isRetry with flags 2021-11-25 01:37:35 +01:00
Ruakij 21e4ff1a66 Removing frameCheckSequence from packets 2021-11-25 01:10:49 +01:00
Ruakij 25297ed4d9 Fixed data-regex 2021-11-25 01:10:34 +01:00
Ruakij 68541b1191 Added check for NoData-Packet 2021-11-25 01:09:25 +01:00
Ruakij 7bc5a3530c Made keyInfo vars const 2021-11-25 00:21:25 +01:00
Ruakij d0ee1a7044 Fixed gtter payloadSize 2021-11-25 00:19:53 +01:00
Ruakij 57394882cc Implemented reading keyExchangeData and determining handshake-number 2021-11-25 00:19:31 +01:00
Ruakij b41d728ba9 Fixed missing export 2021-11-25 00:18:37 +01:00
Ruakij d6135a02e9 Fixed regex 2021-11-25 00:18:21 +01:00
Ruakij ffe14e3f53 Added hexConverter helper-module 2021-11-24 23:22:09 +01:00
Ruakij 09bea81058 Returning packet not to loose information 2021-11-24 23:13:35 +01:00
Ruakij 66c0fdfe12 Fixed Object.assign 2021-11-24 23:13:04 +01:00
Ruakij b32b5cbed7 Changed regex to use readbehind/ahead instead of groups 2021-11-24 23:12:47 +01:00
Ruakij e86b5fca9a Added durationMicros 2021-11-24 22:35:59 +01:00
Ruakij d2178f3b73 Implemented PacketType Disassociation 2021-11-24 22:35:07 +01:00
Ruakij fe5dec7860 Implemented PacketType AssociationRequest & Response 2021-11-24 22:29:41 +01:00
Ruakij 0d472e8cb3 Implemented PacketType Authentication 2021-11-24 22:27:22 +01:00
Ruakij bba5da2599 Moved packet-creation outside for all cases 2021-11-24 22:25:10 +01:00
Ruakij c2210dfb59 Added isRetry field 2021-11-24 21:11:19 +01:00
Ruakij 3c3ab18410 Revert "Added PacketType ContentionFreePeriod"
This reverts commit 333a514363.
2021-11-24 21:01:17 +01:00
Ruakij aa9d5431f8 Changed payloadSize to payloadData with payloadSize getter 2021-11-24 20:44:04 +01:00
Ruakij 62b55b94f1 Added missing payloadSize to Packet 2021-11-24 20:42:33 +01:00
Ruakij 025edf8465 Implemented getting payloadData and calculating to bytes 2021-11-24 20:42:10 +01:00
Ruakij 59e7188543 Changed most checks using Optional chaining and Nullish coalescing operator 2021-11-24 20:39:20 +01:00