Git Product home page Git Product logo

promtail-journal's Introduction

Promtail with Journal Support

Basically just follows the Loki releases and builds images with the Promtail binary. The key difference is that the binaries include journal support, something missing from the release binaries. The images themselves are just basic debian buster on the following architectures:

  • arm64v8
  • amd64
  • arm32v5
  • arm32v7

They don't have any native functionality, rather just intended to be used as a build image since making the binary takes a while. The Promtail addon uses the image in its pipeline.

promtail-journal's People

Contributors

dependabot[bot] avatar mdegat01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

efpe

promtail-journal's Issues

Standalone docker-compose install

@mdegat01 Thanks for creating this container and filling the void left by Grafana.

Thought I'd share how to use this container on a standalone docker install in case others use Home Assistant Container. This uses /ready to perform a healthcheck and also passes through the host name of the docker host for use in the config. This has been tested on a Pi 4 running rasbian 10 buster.

Create the promtail folder:
mkdir -p ~/promtail && cd ~/promtail

Change the following in promtail.yaml

  • clients: url to the IP of the machine running Loki

Save the files below in the ~/promtail folder made above and remove the .txt extensions.
run_promtail.sh.txt
docker-compose.yaml.txt
promtail.yaml.txt

Make sure run_promtail.sh is executable
sudo chmod a+x ~/promtail/run_promtail.sh

Create the container
sudo docker-compose up -d

Verify metrics
wget -qO- http://localhost:9080/metrics

Verify readiness
wget -qO- http://localhost:9080/ready

replace sample with promtail-journal

I am playing with the official loki sample.

I've seen that aarm64 (arm64v8) archs do not have built in journal support.

That's why I am trying to use your promtail-journal in a docker container. I got confused by your explanation that it is only a build container. So could you please explain how to replace your solution within the sample mentioned above?

A few side-questions I've been thinking about but didn't come to answers yet:

  1. How can it be checked on a running promtail (container) instance, whether it has built in journal support or not? I might see a warning in logs that it is tried to consult the journal without having built in journal support. But isn't there an option for earlier diagnosis?
  2. Will a docker container need a full blown systemd setup to make use of promtail's journal support? Or what else does it mean to services around when having journal support?
  3. Is it right, that journal files must be located inside the container with promtail running? Does the location need to be /var/log/jornal?

Thanks for advices.
Greetings woodz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.