diff --git a/CHANGELOG.md b/CHANGELOG.md index b1a1426f3f..06f1994e8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,7 +64,7 @@ * [10344](https://github.com/grafana/loki/pull/10344) **ashwanthgoli** Compactor: deprecate `-boltdb.shipper.compactor.` prefix in favor of `-compactor.`. * [10373](https://github.com/grafana/loki/pull/10373) **jeschkies** Loki: Shard `avg_over_time` range aggregations. * [10377](https://github.com/grafana/loki/pull/10377) **shantanualsi** Remove deprecated config `-s3.sse-encryption` in favor or `-s3.sse.*` settings. -* [10073](https://github.com/grafana/loki/pull/10073) **sandeepsukhani,salvacorts,vlad-diachenko** Support attaching non-indexed labels to log lines. +* [10073](https://github.com/grafana/loki/pull/10073) **sandeepsukhani,salvacorts,vlad-diachenko** Support attaching structured metadata to log lines. * [10378](https://github.com/grafana/loki/pull/10378) **shantanualsi** Remove deprecated `ruler.wal-cleaer.period` * [10380](https://github.com/grafana/loki/pull/10380) **shantanualsi** Remove `experimental.ruler.enable-api` in favour of `ruler.enable-api` * [10395](https://github.com/grafana/loki/pull/10395/) **shantanualshi** Remove deprecated `split_queries_by_interval` and `forward_headers_list` configuration options in the `query_range` section @@ -103,7 +103,7 @@ * [8474](https://github.com/grafana/loki/pull/8787) **andriikushch**: Promtail: Add a new target for the Azure Event Hubs * [8874](https://github.com/grafana/loki/pull/8874) **rfratto**: Promtail: Support expoential backoff when polling unchanged files for logs. * [9508](https://github.com/grafana/loki/pull/9508) **farodin91**: Promtail: improve behavior of partial lines. -* [9986](https://github.com/grafana/loki/pull/9986) **vlad-diachenko**: Promtail: Add `non_indexed_labels` stage to attach non-indexed labels to each log line. +* [9986](https://github.com/grafana/loki/pull/9986) **vlad-diachenko**: Promtail: Add `structured_metadata` stage to attach metadata to each log line. ##### Fixes diff --git a/clients/pkg/logentry/stages/nonindexedlabels_test.go b/clients/pkg/logentry/stages/nonindexedlabels_test.go deleted file mode 100644 index 6542f1d9eb..0000000000 --- a/clients/pkg/logentry/stages/nonindexedlabels_test.go +++ /dev/null @@ -1,132 +0,0 @@ -package stages - -import ( - "testing" - "time" - - "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/common/model" - "github.com/stretchr/testify/require" - - "github.com/grafana/loki/pkg/push" - util_log "github.com/grafana/loki/pkg/util/log" -) - -var pipelineStagesNonIndexedLabelsUsingMatch = ` -pipeline_stages: -- match: - selector: '{source="test"}' - stages: - - logfmt: - mapping: - app: - - non_indexed_labels: - app: -` - -var pipelineStagesNonIndexedLabelsFromLogfmt = ` -pipeline_stages: -- logfmt: - mapping: - app: -- non_indexed_labels: - app: -` - -var pipelineStagesNonIndexedLabelsFromJSON = ` -pipeline_stages: -- json: - expressions: - app: -- non_indexed_labels: - app: -` - -var pipelineStagesNonIndexedLabelsWithRegexParser = ` -pipeline_stages: -- regex: - expression: "^(?s)(?P