Commit Graph
139 Commits
Author SHA1 Message Date
Tomasz Kowalczewski 600cef10e9 Merge pull request #20 from tkowalcz/7-monitoring
7 monitoring
2021-01-22 20:05:43 +01:00
tomasz.kowalczewski 67a0bfbcc6 Re #7: Added more tests and some small changes of monitoring and Netty code. Added closing connection if keepalive is not in force. 2021-01-22 19:54:21 +01:00
tomasz.kowalczewski 6d679896a1 Added way to inject custom monitoring modules and provided default implementations as well as Dropwizard based implementation. Dropwizard dependency is marked as "provided" so it does not impact resulting artifact and can only be used if target application also includes dropwizard library. 2021-01-20 22:58:04 +01:00
tomasz.kowalczewski 8f1c9791d1 Moved metric calculating pipeline stages before request handler otherwise they would not run. 2021-01-20 22:55:53 +01:00
tomasz.kowalczewski 90fcdfd572 Re #7: Cleaned up after moving debug thread logic to separate class. 2021-01-16 20:47:44 +01:00
tomasz.kowalczewski 6b0ec58497 Re #7: Added default value to maxRequestsInFlight, and check in the builder if it is > 0 (or else exception is thrown). 2021-01-16 20:47:18 +01:00
tomasz.kowalczewski a6e63cb6b9 Re #7: Added configuration option 'maxRequestsInFlight' that is used to size monitoring array. Added Netty pipeline stage for tracking number of requests in flight. Added monitoring of number of bytes of logs sent. Added thread that dumps stats to stdout. 2021-01-16 19:16:56 +01:00
tomasz.kowalczewski 64626a39fa Re #7: Added component named MonitoringModule with empty implementation and one that uses AtomicLongs for counting events and Agrona's DistinctErrorLog for storing exceptions. While various counters are being updated by other components and response times are logged we do not provide way of plugging in ones own implementation or reading the counters back (yet). 2021-01-09 10:34:52 +01:00
tomasz.kowalczewski 86d2dc4745 Re #7: Cleaned up import 2021-01-09 00:18:18 +01:00
Tomasz Kowalczewski 3c95cef6e9 Update README.md 2020-12-30 01:59:42 +01:00
Tomasz Kowalczewski 9f196f9c48 Added note about LogLevelLabel configuration element 2020-12-30 01:58:50 +01:00
tomasz.kowalczewski 9e289366e8 Re #15 & #18: Changed label validation regex, previous was incorrectly copied. 2020-12-29 21:23:05 +01:00
tomasz.kowalczewski cb6e4ef363 Re #15 & #18: Trying to fix test that fails on CircleCI. 2020-12-29 20:42:25 +01:00
tomasz.kowalczewski 9563d18c3b Re #15 & #18: Fixed bug in deserializer (method arguments were switched). 2020-12-29 20:12:32 +01:00
tomasz.kowalczewski 0d41f9d004 Re #15 & #18: Implemented checking of label syntax and label duplication (incorrect labels will be dropped). Added checking if log level label is correct. Added tests. Refactored appender builder out of LokiAppender. 2020-12-29 19:56:17 +01:00
Tomasz Kowalczewski a984ae3acc Merge pull request #19 from tkowalcz/17-labels-skip-log-buffer
Re #17: Moved static set of labels to other side of log buffer - no n…
2020-12-27 00:08:38 +01:00
tomasz.kowalczewski 6fc656021a Re #17: Moved static set of labels to other side of log buffer - no need to serialize it when logging. 2020-12-26 23:55:59 +01:00
Tomasz Kowalczewski 3ed773208e Merge pull request #16 from tkowalcz/9-log-level-label
9 log level label
2020-12-26 19:22:01 +01:00
tomasz.kowalczewski 49d5f91a22 Re #9: Tests. 2020-12-26 18:01:21 +01:00
tomasz.kowalczewski e96f28fb79 Re #9: Cleanup. 2020-12-26 18:01:14 +01:00
tomasz.kowalczewski cdc1cf3ead Re #9: Cleanup. 2020-12-26 18:01:01 +01:00
tomasz.kowalczewski b2d5d1e0d4 Re #9: Fixed bugs and added test. 2020-12-26 18:00:44 +01:00
tomasz.kowalczewski 29f2dd1313 Re #9: Added separate log level label and its configuration. Refactored serialization code (that writes into log buffer). 2020-12-25 23:02:35 +01:00
tomasz.kowalczewski ba533793bc We use approval feature of CircleCI to optionally execute release job. This makes all builds look like they are hanging and unfinished (pita when reporting PR status to GH). Trying to change the config so release will be done if tag is specified. 2020-12-20 21:53:07 +01:00
tomasz.kowalczewski 071b634101 Improved tests. Improved defaults of some of configuration parameters and described them in documentation. 2020-12-20 21:42:49 +01:00
Tomasz Kowalczewski 7759fae9dd Merge pull request #14 from tkowalcz/13-log-bupper-pow2
Re #13: Making sure that log buffer is always power of two (plus some…
2020-12-20 19:22:31 +01:00
tomasz.kowalczewski f840a21cbb Re #13: Making sure that log buffer is always power of two (plus some bytes for ring buffer bookkeeping). If input is not power of two then we will use nearest power that is greater than provided value. Minimum value is 1MB while maximum is 1GB. 2020-12-20 19:12:54 +01:00
tomasz.kowalczewski 99a9209e11 Updated documentation. 2020-12-08 08:59:51 +01:00
Tomasz Kowalczewski 6ff3b7cc48 Merge pull request #11 from tkowalcz/8-complete-netty-pipeline
8 complete netty pipeline
2020-12-08 08:48:42 +01:00
tomasz.kowalczewski 961ace842f Re #8: Added tests and check if channel().isActive() before using it. 2020-12-08 08:45:06 +01:00
tomasz.kowalczewski 59a1b1628c Re #8: Refactored connection code to separate class. Added retries. 2020-12-04 23:36:29 +01:00
tomasz.kowalczewski 47c6c8d2fb Re #8: Working on Netty http pipeline. 2020-12-01 22:03:06 +01:00
tomasz.kowalczewski 4d2921f295 gitignore cleanup 2020-11-29 00:31:16 +01:00
tomasz.kowalczewski 62dfebf904 gitignore cleanup 2020-11-29 00:30:29 +01:00
tomasz.kowalczewski ae1029d865 Re #10 - shutting down threads on close plus cleaned tests somewhat. 2020-11-29 00:18:43 +01:00
tomasz.kowalczewski 5a2ba02327 [skip ci] [maven-release-plugin] prepare for next development iteration 2020-11-19 21:35:10 +00:00
tomasz.kowalczewski 69b72abe55 [skip ci] [maven-release-plugin] prepare release tjahzi-0.6 2020-11-19 21:35:04 +00:00
tomasz.kowalczewski e0ccf45a86 Re #4: Added ability to pass preconfigured headers in every http call to Loki. 2020-11-19 21:22:26 +01:00
tomasz.kowalczewski a42a9cdbed Re #4: Added ability to pass preconfigured headers in every http call to Loki. 2020-11-19 21:21:40 +01:00
Tomasz Kowalczewski 06b212f425 Merge pull request #6 from tkowalcz/docs-in-progress
Docs in progress
2020-11-19 21:20:11 +01:00
tomasz.kowalczewski 3f72c8e99a Docs about interpolation. 2020-11-15 22:15:54 +01:00
tomasz.kowalczewski 527d4d37c7 Described headers and labels. 2020-11-15 16:26:14 +01:00
tomasz.kowalczewski 475dd3c38e Described host and port. 2020-11-15 16:05:54 +01:00
tomasz.kowalczewski 948c5d50df Working on documentation. 2020-11-14 20:02:33 +01:00
tomasz.kowalczewski d9ca650349 Added initial documentation for log4j2 appender. 2020-11-12 19:57:45 +01:00
tomasz.kowalczewski c98fad4bd0 Extended readme with badges. 2020-11-12 19:51:16 +01:00
Tomasz Kowalczewski cd1ad967f5 Changed links under badges 2020-11-10 09:07:04 +01:00
Tomasz Kowalczewski 7a6d586689 Added maven version badges 2020-11-10 09:06:02 +01:00
tomasz.kowalczewski c9f726b4d1 [skip ci] [maven-release-plugin] prepare for next development iteration 2020-11-09 19:17:23 +00:00
tomasz.kowalczewski 1cdf50e49e [skip ci] [maven-release-plugin] prepare release tjahzi-0.5 2020-11-09 19:17:17 +00:00