← Back to team overview

ubuntu-docker-images team mailing list archive

[RFC/RFA] Loki snap

 

Hi,

I finally "finished" the Loki snap and have something ready for review.

TL;DR:

  Git repo: https://code.launchpad.net/~sergiodj/loki-snap/+git/loki-snap
  Test snap: https://launchpad.net/~sergiodj/+snap/loki-sergiodj-test

So, Loki is a relatively simple software.  It generates a bunch of
binaries, but the snap is only shipping 3 of them:

  - loki (installed as loki), the log aggregation server
  - promtail (installed as loki.promtail), one of its clients
  - logcli (installed as loki.logcli), a CLI to communicate with the
    server

I'm using the same method to get/set the server configuration as the
Cassandra snap uses: have a pair of scripts (config-{set,get})
responsible for dumping the current configuration file and overwriting
the existing config file with a new one.

A few things worth noting:

- The repository doesn't have a README.md file yet.  I will probably
  have to create one when I apply for a new snap on the snapcraft
  discourse.

- No tests, as usual.  If you want to run a quick&dirty test to make
  sure the service is running, install the snap and point your browser
  to http://localhost:3100/metrics.

  This snap will be used as a base for the Loki OCI image, which will
  have tests (as usual).

- I already created the loki-snap project on LP:

    https://launchpad.net/loki-snap

  LP won't let me file an MP against a non-existing repository
  (rightfully so), so for now we can do our reviews via email.

Thanks in advance,

-- 
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0  EB2F 106D A1C8 C3CB BF14


Follow ups