class BitteCI::Loki

Defined in:

bitte_ci/loki.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(loki_base_url : URI, labels : Hash(String, String), obfuscate) #

[View source]
def self.new(loki_base_url) #

[View source]

Class Method Detail

def self.query_range(loki_base_url, loki_id, from : Time, to : Time | Nil) #

[View source]
def self.query_range(loki_base_url : URI, from : Time, to : Time, query : String) #

[View source]

Instance Method Detail

def collect #

[View source]
def log(text : String, labels : Hash(String, String) = @labels) #

[View source]
def push(collected : Array(Value)) #

[View source]
def push_loop #

[View source]
def run(&) #

[View source]
def sh(cmd, args, chdir) #

[View source]
def start #

[View source]
def stop #

[View source]
def time_loop #

Ensure we send logs at least every 10 seconds, even if the size is below 1MB


[View source]