Skip to content

Commit a52e375

Browse files
committed
fix loki/grafana failing to grab detected_level directly
1 parent 0a658c9 commit a52e375

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

service/forwarder/loki/streams.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (this *Loki) webStreamToLabeled(logStream *streams.WebStream, instance *dbo
3232
labels := map[string]string{}
3333
maps.Copy(labels, baseLabels)
3434
logdata.CopyMetaFields(labels, entry.Meta)
35-
labels["detected_level"] = entry.Level.String()
35+
labels["level"] = entry.Level.String()
3636

3737
if this.StrictLabels {
3838
filterLabelFormat(labels)
@@ -92,7 +92,7 @@ func (this *Loki) webStreamToStructured(logStream *streams.WebStream, instance *
9292
maps.Copy(meta, entry.Meta)
9393
}
9494

95-
meta["detected_level"] = entry.Level.String()
95+
meta["level"] = entry.Level.String()
9696

9797
if this.StrictLabels {
9898
filterLabelFormat(meta)

0 commit comments

Comments
 (0)