You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(loki.process): Support structured metadata as source type of stage.labels for loki.process (#5055)
#### PR Description
This enhances the `labels` stage of `loki.process` to be able to
retrieve data from structured metadata.
#### Which issue(s) this PR fixes
Fixes#4717
#### Notes to the Reviewer
#### PR Checklist
<!-- Remove items that do not apply. For completed items, change [ ] to
[x]. -->
- [x] Documentation added
- [x] Tests updated
- [x] Config converters updated
Copy file name to clipboardExpand all lines: docs/sources/reference/components/loki/loki.process.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -582,15 +582,16 @@ stage.label_keep {
582
582
583
583
### `stage.labels`
584
584
585
-
The `stage.labels` inner block configures a labels processing stage that can read data from the extracted values map and set new labels on incoming log entries.
585
+
The `stage.labels` inner block configures a labels processing stage that can read data from the extracted values map or structured metadata and set new labels on incoming log entries.
586
586
587
587
For labels that are static, refer to [`stage.static_labels`][stage.static_labels]
588
588
589
589
The following arguments are supported:
590
590
591
-
| Name | Type | Description | Default | Required |
0 commit comments