Live: pipeline Loki output (#41272)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user