mjfryc / mjaron-tinyloki-java Goto Github PK
View Code? Open in Web Editor NEWTiny Grafana Loki client (log sender) written in pure Java 1.8 without any dependencies.
License: MIT License
Tiny Grafana Loki client (log sender) written in pure Java 1.8 without any dependencies.
License: MIT License
The connection close header is unnecessary and should be removed.
Variable logEncoder may be null here because of this null argument.
Hi, I have added the builder methods withPrettify() and withoutPrettify() to Labels (locally) as my labels value were being corrupted and I couldn't link between Loki and Tempo.
I tested and it would seem that Loki can now (v2.6.1) accept unprettified labels/values.
Do you think this is a good idea?
Paul.
This task is similar to #20.
@SuppressWarnings("unused")
public class Labels implements Cloneable {
Class Labels overrides [equals](https://lgtm.com/projects/g/mjfryc/mjaron-tinyloki-java/snapshot/d3f67ecc523b952ef7c612d302fab279b3ed770e/files/src/main/java/pl/mjaron/tinyloki/Labels.java#xd72d4c252d47884:1) but not hashCode.
Worker thread - periodic action of log collecting - should be separated, by:
IWorker
IWorker
implementation with single thread, named WorkerThread
WorkerReactiveX
implementation which use rx-java
instead of separated thread. Add it as different java project [In future, not covered by this issue].softStop()
and hardStop()
methods implementation.Grafana Loki server configuration with default label length limits:
https://grafana.com/docs/loki/latest/configuration/
# Maximum length of a label name.
# CLI flag: -validation.max-length-label-name
[max_label_name_length: <int> | default = 1024]
# Maximum length of a label value.
# CLI flag: -validation.max-length-label-value
[max_label_value_length: <int> | default = 2048]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.