Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processor_label_value: Add label parameter description and add example configuration for delete_label_value operation #1367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 31 additions & 1 deletion pipeline/processors/metrics-selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,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 @@ -44,6 +45,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