Skip to content

Commit

Permalink
processor_label_value: Add label parameter description and add exampl…
Browse files Browse the repository at this point in the history
…e configuration for delete_label_value operation (#1367)

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Aug 16, 2024
1 parent b3bbbe4 commit 1389025
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion pipeline/processors/metrics-selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ The native processor plugin supports the following configuration parameters:
| Key | Description | Default |
| :---------- | :--- | :--- |
| Metric\_Name | Keep metrics in which the metric of name matches with the actual name or the regular expression. | |
| Context | Specify matching context. Currently, metric_name is only supported. | `Metrics_Name` |
| Context | Specify matching context. Currently, metric\_name and delete\_label\_value are only supported. | `Metrics_Name` |
| Action | Specify the action for specified metrics. INCLUDE and EXCLUDE are allowed. | |
| Operation\_Type | Specify the operation type of action for metrics payloads. PREFIX and SUBSTRING are allowed. | |
| Label | Specify a label key and value pair. | |

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

Expand Down Expand Up @@ -46,6 +47,35 @@ pipeline:
delete: name


outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% tab title="context-delete\_label\_value.yaml" %}
```yaml
service:
flush: 5
daemon: off
log_level: info

pipeline:
inputs:
- name: fluentbit_metrics
tag: fluentbit.metrics
scrape_interval: 10

processors:
metrics:
- name: metrics_selector
context: delete_label_value
label: name stdout.0

- name: labels
delete: name


outputs:
- name: stdout
match: '*'
Expand Down

0 comments on commit 1389025

Please sign in to comment.