Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging solution #20

Open
3 of 6 tasks
daurnimator opened this issue Jun 4, 2020 · 3 comments
Open
3 of 6 tasks

Logging solution #20

daurnimator opened this issue Jun 4, 2020 · 3 comments

Comments

@daurnimator
Copy link
Member

daurnimator commented Jun 4, 2020

I have a bit of a pet hate for kibana and to a less degree, elastic-search. Lets set up loki (to be used from grafana).

TODO list:

  • collect logs (fluent-bit vs promtail?)
  • rotate logs (? is this automatic?)
  • make logs searchable
  • collect node logs (e.g. dmesg)
  • look into @fatalbanana 's ideas below (boltdb?)
  • set up ingress for local logcli usage
@fatalbanana
Copy link

fatalbanana commented Jun 4, 2020

Loki is cool- however the microservices-style deployment can get into a broken state if a k8s worker vanishes for example (ie. bad things will happen if ingesters do not remove themselves from the hash ring (in Consul or etcd)).

Using the monolith-style deploy avoids this problem; however it can't be scaled out & you may more likely lose logs in failure scenarios.

Support for writing boltdb indexes to the object store was recently added: it's probably worth trying that if you'd prefer not using locally attached storage (probably a good idea?)- since there is nothing like BigTable nearby.

If you (eventually?) need to go for the distributed setup I'd suggest trying memberlist for hash ring- though I'm not convinced it will solve something besides removing a dependency.

Not sure why you'd be tempted to reach for fluent-bit but in general I'd recommend using promtail.

@daurnimator
Copy link
Member Author

daurnimator commented Jun 15, 2020

basic (monolithic) loki setup done via #32

@daurnimator
Copy link
Member Author

collect node logs (e.g. dmesg)

done via 5d8b683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants