class BitteCI::Loki
- BitteCI::Loki
- Reference
- Object
Defined in:
bitte_ci/loki.crConstructors
Class Method Summary
- .query_range(loki_base_url, loki_id, from : Time, to : Time | Nil)
- .query_range(loki_base_url : URI, from : Time, to : Time, query : String)
Instance Method Summary
- #collect
- #log(text : String, labels : Hash(String, String) = @labels)
- #push(collected : Array(Value))
- #push_loop
- #run(&)
- #sh(cmd, args, chdir)
- #start
- #stop
-
#time_loop
Ensure we send logs at least every 10 seconds, even if the size is below 1MB