Live: rename remote write backends to write configs (#41467)
This commit is contained in:
@@ -103,8 +103,10 @@ func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelR
|
||||
DataOutputters: []DataOutputter{
|
||||
NewLokiDataOutput(
|
||||
os.Getenv("GF_LIVE_LOKI_ENDPOINT"),
|
||||
os.Getenv("GF_LIVE_LOKI_USER"),
|
||||
os.Getenv("GF_LIVE_LOKI_PASSWORD"),
|
||||
&BasicAuth{
|
||||
User: os.Getenv("GF_LIVE_LOKI_USER"),
|
||||
Password: os.Getenv("GF_LIVE_LOKI_PASSWORD"),
|
||||
},
|
||||
),
|
||||
},
|
||||
Converter: NewJsonFrameConverter(JsonFrameConverterConfig{}),
|
||||
@@ -112,8 +114,10 @@ func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelR
|
||||
NewManagedStreamFrameOutput(f.ManagedStream),
|
||||
NewRemoteWriteFrameOutput(
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_ENDPOINT"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
&BasicAuth{
|
||||
User: os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
Password: os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
},
|
||||
1000,
|
||||
),
|
||||
},
|
||||
@@ -298,8 +302,10 @@ func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelR
|
||||
NewManagedStreamFrameOutput(f.ManagedStream),
|
||||
NewRemoteWriteFrameOutput(
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_ENDPOINT"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
&BasicAuth{
|
||||
User: os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
Password: os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
},
|
||||
0,
|
||||
),
|
||||
NewChangeLogFrameOutput(f.FrameStorage, ChangeLogOutputConfig{
|
||||
@@ -333,8 +339,10 @@ func (f *DevRuleBuilder) BuildRules(_ context.Context, _ int64) ([]*LiveChannelR
|
||||
NewManagedStreamFrameOutput(f.ManagedStream),
|
||||
NewRemoteWriteFrameOutput(
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_ENDPOINT"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
&BasicAuth{
|
||||
User: os.Getenv("GF_LIVE_REMOTE_WRITE_USER"),
|
||||
Password: os.Getenv("GF_LIVE_REMOTE_WRITE_PASSWORD"),
|
||||
},
|
||||
0,
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user