Skip to content

Commit f5e4db3

Browse files
authored
Fix usage for loki enrich documentation (#3965)
1 parent 67546ef commit f5e4db3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/sources/reference/components/loki/loki.enrich.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ loki.enrich "<LABEL>" {
2525
targets = <DISCOVERY_COMPONENT>.targets
2626
2727
// Which label from discovered targets to match against
28-
match_label = "<LABEL>"
28+
target_match_label = "<LABEL>"
2929
3030
// Which label from incoming logs to match against
31-
source_label = "<LABEL>"
31+
logs_match_label = "<LABEL>"
3232
3333
// List of labels to copy from discovered targets to logs
3434
labels_to_copy = ["<LABEL>", ...]
@@ -48,7 +48,9 @@ You can use the following arguments with `loki.enrich`:
4848
| `target_match_label` | `string` | The label from discovered targets to match against, for example, `"__inventory_consul_service"`. | | yes |
4949
| `targets` | `[]discovery.Target` | List of targets from a discovery component. | | yes |
5050
| `labels_to_copy` | `[]string` | List of labels to copy from discovered targets to logs. If empty, all labels will be copied. | | no |
51-
| `logs_match_label` | `string` | The label from incoming logs to match against discovered targets, for example `"service_name"`. | `"target_match_label"` | no |
51+
| `logs_match_label` | `string` | The label from incoming logs to match against discovered targets, for example `"service_name"`. | | no |
52+
53+
If not provided, the `logs_match_label` attribute will default to the value of `target_match_label`.
5254

5355
## Blocks
5456

0 commit comments

Comments
 (0)