Skip to content
Snippets Groups Projects
  1. Aug 01, 2019
    • Ed's avatar
      style(loki-canary): spelling (#832) · fc12a235
      Ed authored
      fc12a235
    • sh0rez's avatar
      chore(packaging/docker): Support multiple architectures (#762) · b887602e
      sh0rez authored
      This finally adds support for multiple architectures! :tada: 
      
      Images are now built using BuildKit (actually img), Dockerfiles were parameterized to allow this.
      Containers are still built on alpine, using QEMU and binfmt as a kernel compatibility layer to allow RUN steps in these.
      
      CircleCI has been fully revamped, to speed up builds and de-duplicate the configuration.
      Makefile has been extended with additional logic to shadow the multi-arch to non-CI users.
      
      Happy hacking on Raspberry Pi and friends :)
      b887602e
  2. Jul 31, 2019
    • Marco Pracucci's avatar
      fix(logcli): timestamp timezone handling (#821) · e7fb2058
      Marco Pracucci authored
      Logcli used to inconsistently handle timezones in timestamps.
      
      This addresses this by adding a new `--timezone` / `-z` flag, to explicitly set the timezone the timestamps shall be formatted in.
      
      Furthermore it refactors the output framework inside of logcli to test it easier.
      
      Fixes #798 
      e7fb2058
  3. Jul 30, 2019
  4. Jul 29, 2019
  5. Jul 23, 2019
  6. Jul 19, 2019
    • Cyril Tovena's avatar
    • sh0rez's avatar
      feat(loki): extended tailing (#764) · 38cb0933
      sh0rez authored
      * refactor(querier/ingester): TailRequest Lookback window
      
      Moves the specifications of the Lookback Window out of the
      logproto.QueryRequest into it's own type logproto.Lookback.
      This is required, because the Lookback Window will be used in the TailRequest
      as well.
      
      * feat(querier): parse Lookback from HTTP Request
      
      * feat(logcli): send Lookback Window spec with tail request
      
      * feat(querier): include historic entries in tail mode
      
      Extends tailing by sending a configurable amount of historic entries with
      before the live entries. This enables a behaviour that is closer to kubectl logs
      -f and docker logs -f.
      
      It is implemented by running a regular Query before subscribing to the ingesters.
      
      * fix: adapt tests to Lookback change
      
      * feat(querier): check all errors to make the linter happy
      
      * fix(logproto): flatten Lookback window spec
      
      Flattens the Lookback window spec into the individual queries
      
      * fix(ingester): adapt test to Lookback flatten
      38cb0933
  7. Jul 18, 2019
  8. Jul 17, 2019
  9. Jul 16, 2019
    • Cyril Tovena's avatar
      Storage memory improvement (#713) · 3346ce1b
      Cyril Tovena authored
      * add benchmark for storage queries
      * improve iterator to load only on next
      * fix memory retained by lazy chunks
      * reverse backward lazy iterator
      3346ce1b
  10. Jul 15, 2019
    • sh0rez's avatar
      feat(logcli): output modes (#731) · 9d5630d8
      sh0rez authored
      * feat(logcli): quiet mode
      
      Adds a quiet mode (-q / --quiet) to suppress the debug messages to stderr
      
      * feat(logcli): output modes
      
      Adds two alternative output modes (-o / --output)
      
      - raw: emits the line as parsed
      - jsonl: emits the line plus all known metadata as JSONL (JSON Line)
      
      Usage: -o [default, raw, jsonl]
      
      * feat(logcli): quiet tailing mode
      
      * feat(logcli): output modes while tailing
      
      Supports the three different output modes in tail mode as well
      
      * feat(logcli): print labels in jsonl tail mode
      
      * refactor(logcli): clean up entry printing
      
      Moves the entry printing into a standardized interface, implements this three
      times:
      
      - default (human readable)
      - jsonl (for scripts)
      - raw ('as is')
      9d5630d8
    • sh0rez's avatar
      feat(logcli): query from absolute timestamp (#736) · d43de72f
      sh0rez authored
      * feat(logcli): query from absolute timestamp
      
      Adds a new flag (`--from`) as to complement `--since`.
      While since subtracts a relative duration from the current time, from allows to
      specify the absolute start of the lookback window.
      
      Note: `--from` takes precedence over `--since`, but only if set.
      
      * fix(logcli): use RFC3339Nano for -from
      
      To comply with Prometheus, this flag now honors Nanoseconds as well (was using
      RFC3339 so far)
      d43de72f
  11. Jul 09, 2019
    • Edward Welch's avatar
      prune interval is configurable · eedd3d9f
      Edward Welch authored
      canary will suspend all operations on SIGINT but not exit, allowing you to shutdown the canary without it being restarted by docker/kubernetes
      SIGTERM will shutdown everything and end the process
      eedd3d9f
  12. Jul 08, 2019
    • sh0rez's avatar
      fix(loki): panic on missing config (#720) · 4779b8bd
      sh0rez authored
      * fix(loki): pass missing config error to user
      
      Missing config errors are handled at the library level. Our own check mitigated
      this and causes loki to SEGFAULT later on
      
      * feat(loki): default config file in container
      
      The container provides a default config file. Use it by default
      
      * Revert "fix(loki): pass missing config error to user"
      
      This reverts commit b2744fcf427b2b386dce5e999c855ae5c899e4e2, because loki it
      assumed loki was incapable of running without config, which is not the case.
      4779b8bd
  13. Jul 05, 2019
    • sh0rez's avatar
      fix(loki|promtail): logger re-init nil config panic (#697) · 420a359f
      sh0rez authored
      When a more or less invalid config (e.g. `null`) is supplied, the log level prop
      of the config receives an invalid value which causes the logger to panic on
      re-init.
      
      Prevents this by checking for a nil log-level and notifies the user in case
      420a359f
  14. Jun 26, 2019
  15. Jun 19, 2019
    • Sandeep Sukhani's avatar
      Improvements in live tailing of logs (#541) · 2a8a0379
      Sandeep Sukhani authored
      * Improvements in live tailing of logs
      
      Instead of polling for new logs, a grpc stream is opened between ingester and querier to get live logs
      Querier reconnects to disconnected or newly added ingesters
      
      * Added more comments to code for live log tailing
      
      * Some code refactoring in live log tailing
      
      * handling delayfor in logcli, max delayfor to be 5 seconds
      
      * some changes in tail response in live tailing
      
      * Fixed issue with stopping ingesters gracefully when live tailing is being used
      
      * Added tests for tailer in querier
      
      * Live tailing made logql compatible, some code refactoring suggested in PR
      2a8a0379
  16. Jun 17, 2019
  17. Jun 13, 2019
    • Cyril Tovena's avatar
      Docker Logging Driver (#663) · 2909fe54
      Cyril Tovena authored
      * adds first version of docker driver
      
      * without logrus and fixes some linter issue
      
      * fix the driver and start a build system
      
      * adds swarm label discovery
      
      * Add documentation and more targets
      
      * make the linter happy :heart:
      
      * indent config.json
      
      * with circleci steps for master and branch
      
      * Review Feebacks
      2909fe54
  18. Jun 12, 2019
  19. Jun 10, 2019
    • sh0rez's avatar
      fix(loki): honor log level from config file (#657) · 6fac9547
      sh0rez authored
      Because of the logger being initialized before the configuration file is parsed,
      the log_level from the config file is ignored.
      To solve this, the logger is reinitialized after the file is parsed, as it is
      already being done in promtail.
      6fac9547
  20. Jun 03, 2019
  21. May 30, 2019
  22. May 27, 2019
  23. May 24, 2019
    • Sandeep Sukhani's avatar
      Update cortex vendor (#610) · 3d3c0571
      Sandeep Sukhani authored
      * Update cortex vendor
      Use query max look back from cortex
      Update config changes from cortex
      Fixed breaking code due to updating cortex vendor
      
      * fixed linter error
      3d3c0571
  24. May 17, 2019
  25. May 16, 2019
  26. May 15, 2019
  27. May 14, 2019
Loading