Loki: Create component for sending logs to Loki (#51500)

This commit is contained in:
Emil Tullstedt
2022-06-30 10:24:44 +02:00
committed by GitHub
parent a5924315f8
commit b45c71c9ca
16 changed files with 2746 additions and 233 deletions
@@ -0,0 +1,7 @@
package logproto
type Streams []Stream
func (xs Streams) Len() int { return len(xs) }
func (xs Streams) Swap(i, j int) { xs[i], xs[j] = xs[j], xs[i] }
func (xs Streams) Less(i, j int) bool { return xs[i].Labels <= xs[j].Labels }