Skip to content

Commit 1389025

Browse files
authored
processor_label_value: Add label parameter description and add example configuration for delete_label_value operation (#1367)
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent b3bbbe4 commit 1389025

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

pipeline/processors/metrics-selector.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ The native processor plugin supports the following configuration parameters:
1111
| Key | Description | Default |
1212
| :---------- | :--- | :--- |
1313
| Metric\_Name | Keep metrics in which the metric of name matches with the actual name or the regular expression. | |
14-
| Context | Specify matching context. Currently, metric_name is only supported. | `Metrics_Name` |
14+
| Context | Specify matching context. Currently, metric\_name and delete\_label\_value are only supported. | `Metrics_Name` |
1515
| Action | Specify the action for specified metrics. INCLUDE and EXCLUDE are allowed. | |
1616
| Operation\_Type | Specify the operation type of action for metrics payloads. PREFIX and SUBSTRING are allowed. | |
17+
| Label | Specify a label key and value pair. | |
1718

1819
## Configuration Examples <a id="config_example"></a>
1920

@@ -46,6 +47,35 @@ pipeline:
4647
delete: name
4748

4849

50+
outputs:
51+
- name: stdout
52+
match: '*'
53+
```
54+
{% endtab %}
55+
56+
{% tab title="context-delete\_label\_value.yaml" %}
57+
```yaml
58+
service:
59+
flush: 5
60+
daemon: off
61+
log_level: info
62+
63+
pipeline:
64+
inputs:
65+
- name: fluentbit_metrics
66+
tag: fluentbit.metrics
67+
scrape_interval: 10
68+
69+
processors:
70+
metrics:
71+
- name: metrics_selector
72+
context: delete_label_value
73+
label: name stdout.0
74+
75+
- name: labels
76+
delete: name
77+
78+
4979
outputs:
5080
- name: stdout
5181
match: '*'

0 commit comments

Comments
 (0)