Live: pipeline Loki output (#41272)

This commit is contained in:
Alexander Emelin
2021-11-09 13:10:43 +03:00
committed by GitHub
parent 833ed5418e
commit 78e9fe520b
6 changed files with 273 additions and 40 deletions
+8 -1
View File
@@ -99,7 +99,14 @@ type DevRuleBuilder struct {
func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelRule, error) {
return []*LiveChannelRule{
{
Pattern: "plugin/testdata/random-20Hz-stream",
Pattern: "plugin/testdata/random-20Hz-stream",
DataOutputters: []DataOutputter{
NewLokiDataOutput(
os.Getenv("GF_LIVE_LOKI_ENDPOINT"),
os.Getenv("GF_LIVE_LOKI_USER"),
os.Getenv("GF_LIVE_LOKI_PASSWORD"),
),
},
Converter: NewJsonFrameConverter(JsonFrameConverterConfig{}),
FrameOutputters: []FrameOutputter{
NewManagedStreamFrameOutput(f.ManagedStream),