loki-operator

command module
v0.0.0-...-fff67ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

README

CircleCI Docker Repository on Quay

Loki operator

This operator is expected to gather partial promtail configurations relevant to specific applications and combine them into the single promtail config file in its ConfigMap.

Warning: This is proof-of-concept quality software! Don't run in production until you really YOLO!

How it works

Each application can deliver its own promtail log parsing config by creating a ConfigMap in the same namespace. The name of the ConfigMap is arbitrary. The ConfigMap needs to have just 1 key promtail.yaml, which includes promtail config to include in the actual promtail ConfigMap on behalf of this application.

The application informs loki-operator to register its config by including the Label in Pod's template yaml (can be single Pod or any Pod created by Deployment or any other controller). The Label looks like this

giantswarm.io/loki-promtail-config: apiserver-promtail-config

If there are more than 1 container in the Pod (like because you're running some kind of service mesh), you have to explicitly point to the container you want to get logs from:

giantswarm.io/loki-promtail-container: apiserver

What's missing

  • any tests
  • almost all validation of input files
  • currently the application needs to provide both the actual configuration pipeline but also filters config to apply the pipeline only to valid pods; this second part (where to apply the config - the filter) should be auto-generated
  • restarts of promtail pods
  • ability to get logs from many containers of the same Pod applying different configs to them.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
Package server provides a server implementation to connect network transport protocols and service business logic by defining server endpoints.
Package server provides a server implementation to connect network transport protocols and service business logic by defining server endpoints.
Package service implements business logic to create Kubernetes resources against the Kubernetes API.
Package service implements business logic to create Kubernetes resources against the Kubernetes API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL