live: pipeline remote write buffer (#39586)

This commit is contained in:
Alexander Emelin
2021-09-23 18:35:09 +03:00
committed by GitHub
parent c2604e04ab
commit 914ae81026
2 changed files with 55 additions and 18 deletions
+4 -2
View File
@@ -107,8 +107,10 @@ func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelR
Converter: NewJsonFrameConverter(JsonFrameConverterConfig{}),
Outputter: NewMultipleOutput(
NewManagedStreamOutput(f.ManagedStream),
NewRedirectOutput(RedirectOutputConfig{
Channel: "stream/testdata/random-20Hz-stream",
NewRemoteWriteOutput(RemoteWriteConfig{
Endpoint: os.Getenv("GF_LIVE_REMOTE_WRITE_ENDPOINT"),
User: os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
Password: os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
}),
),
},