File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff 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 : ' *'
You can’t perform that action at this time.
0 commit comments