zawachte / lomba

Analyze Kubernetes cluster logs in an instant. Powered by Grafana and Loki.
Apache License 2.0
2 stars 1 forks source link

Implements feature to stream pod logs in Loki #2

Open AxiomSamarth opened 1 year ago

AxiomSamarth commented 1 year ago

This PR is intended to stream the pod logs in Loki to address issue #1

As goroutines are employed to stream the pod logs, to keep them active, we need to ensure that the main doesn't terminate. Hence, a new flag stream-duration is newly introduced. This will keep main active and the streaming will continue for a duration as set by stream-duration. Default value of stream-duration is set to 1 hour.