You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/processors/labels.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,11 @@ Only [YAML configuration files](../../administration/configuring-fluent-bit/yaml
16
16
17
17
| Key | Description |
18
18
| --- | ----------- |
19
-
|`update`| Updates an existing key with a value into metrics. The key/value pair is required. If the specified key doesn't exist, the operation silently fails and has no effect. |
20
-
|`insert`| Inserts a new key with a value into metrics. The key/value pair is required. |
21
-
|`upsert`| Upserts a specific key with a value, the `upsert` operation will try to update the value of the key. If the specified key doesn't exist, a new key will be created. The key/value pair is required. |
22
19
|`delete`| Deletes a key from the labels of metrics. The key/value pair is required. If the specified key doesn't exist, the operation silently fails and has no effect. |
23
20
|`hash`| Replaces the key value with a hash generated by the SHA-256 algorithm from the specified label name. The generated binary value is set as a hex string. |
21
+
|`insert`| Inserts a new key with a value into metrics. The key/value pair is required. |
22
+
|`update`| Updates an existing key with a value into metrics. The key/value pair is required. If the specified key doesn't exist, the operation silently fails and has no effect. |
23
+
|`upsert`| Upserts a specific key with a value, the `upsert` operation will try to update the value of the key. If the specified key doesn't exist, a new key will be created. The key/value pair is required. |
24
24
25
25
### Update example
26
26
@@ -124,7 +124,7 @@ pipeline:
124
124
125
125
### Hash example
126
126
127
-
The following example applies the SHA-1 algorithm for the value of the key `hostname`:
127
+
The following example applies the SHA-256 algorithm for the value of the key `hostname`:
Copy file name to clipboardExpand all lines: pipeline/processors/metrics-selector.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ The metrics selector processor supports the following configuration parameters:
10
10
11
11
| Key | Description | Default |
12
12
| --- | ----------- | ------- |
13
-
|`metric_name`| The string that determines which metrics are affected by this processor, depending on the active [matching operation](#matching-operations). |_none_|
14
-
|`context`| Specifies matching context. Possible values: `metric_name` or `delete_label`. |`metrics_name`|
15
13
|`action`| Specifies whether to include or exclude matching metrics. Possible values: `INCLUDE` or `EXCLUDE`. |_none_|
16
-
|`operation_type`| Specifies the [matching operation](#matching-operations) to apply to the value of `metric_name`. Possible values: `PREFIX` or `SUBSTRING`. |_none_|
14
+
|`context`| Specifies matching context. Possible values: `metric_name` or `delete_label_value`. |`metric_name`|
17
15
|`label`| Specifies a label key and value pair. |_none_|
16
+
|`metric_name`| The string that determines which metrics are affected by this processor, depending on the active [matching operation](#matching-operations). |_none_|
17
+
|`operation_type`| Specifies the [matching operation](#matching-operations) to apply to the value of `metric_name`. Possible values: `PREFIX` or `SUBSTRING`. |_none_|
Copy file name to clipboardExpand all lines: pipeline/processors/sampling.md
+24-23Lines changed: 24 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,12 @@ Only [YAML configuration files](../../administration/configuring-fluent-bit/yaml
12
12
13
13
This processor uses the following configuration parameters:
14
14
15
-
| Key | Description |
16
-
| --- | ----------- |
17
-
|`type`| The type of sampling to perform. Possible values: `probabilistic` ([head sampling](#head-sampling)) or `tail` ([tail sampling](#tail-sampling)). |
18
-
|`sampling_settings`| Contains key/value pairs for different sampling settings. These settings vary by `type`. |
19
-
|`conditions`| An array of objects where each object specifies a different [condition](#conditions) for `tail` sampling. The possible items in each object vary by `conditions.type`. |
15
+
| Key | Description | Default |
16
+
| --- | ----------- | ------- |
17
+
|`conditions`| An array of objects where each object specifies a different [condition](#conditions) for `tail` sampling. The possible items in each object vary by `conditions.type`. |_none_|
18
+
|`debug`| Enables debug mode, which prints the trace and its spans. |`false`|
19
+
|`sampling_settings`| Contains key/value pairs for different sampling settings. These settings vary by `type`. |_none_|
20
+
|`type`| The type of sampling to perform. Possible values: `probabilistic` ([head sampling](#head-sampling)) or `tail` ([tail sampling](#tail-sampling)). |_none_|
20
21
21
22
## Head sampling
22
23
@@ -98,10 +99,10 @@ This condition samples traces based on span duration. It uses `threshold_ms_low`
98
99
The latency condition uses the following `conditions` configuration parameters:
99
100
100
101
| Key | Description | Default |
101
-
| --- | ----------- | --------|
102
-
| `type` | Sets the condition type. For the latency condition, this value must be `latency`. | _none_ |
103
-
| `threshold_ms_low` | Specifies the lower latency threshold. Traces with a duration less than or equal to this value will be sampled. | `0` |
102
+
| --- | ----------- | ------- |
104
103
| `threshold_ms_high` | Specifies the upper latency threshold. Traces with a duration greater than or equal to this value will be sampled. | `0` |
104
+
| `threshold_ms_low` | Specifies the lower latency threshold. Traces with a duration less than or equal to this value will be sampled. | `0` |
105
+
| `type` | Sets the condition type. For the latency condition, this value must be `latency`. | _none_ |
105
106
106
107
The following example waits five seconds before making a decision. It then samples traces based on latency, capturing short traces of 200 ms or less and long traces of 3000 ms or more. Traces between 200 ms and 3000 ms won't be sampled unless another condition applies.
107
108
@@ -146,10 +147,10 @@ This condition samples traces that have specific span counts defined in a config
146
147
The span count condition uses the following `conditions` configuration parameters:
147
148
148
149
| Key | Description | Default |
149
-
| --- | ----------- | --------|
150
+
| --- | ----------- | ------- |
151
+
| `max_spans` | Specifies the maximum number of spans a trace can have to be sampled. | _none_ |
152
+
| `min_spans` | Specifies the minimum number of spans a trace must have to be sampled. | _none_ |
150
153
| `type` | Sets the condition type. For the span count condition, this value must be `span_count`. | _none_ |
151
-
| `max_spans` | Specifies the minimum number of spans a trace must have to be sampled. | _none_ |
152
-
| `min_spans` | Specifies the maximum number of spans a trace can have to be sampled. | _none_ |
153
154
154
155
The following example configuration waits five seconds before making a decision. It then samples traces with at least three spans but no more than five spans. Traces with less than three spans or greater than five spans won't be sampled unless another condition applies.
155
156
@@ -194,9 +195,9 @@ This condition samples traces based on span status codes (`OK`, `ERROR`, `UNSET`
194
195
The status code condition uses the following `conditions` configuration parameters:
195
196
196
197
| Key | Description | Default |
197
-
| --- | ----------- | --------|
198
-
| `type` | Sets the condition type. For the status code condition, this value must be `status_code`. | _none_ |
198
+
| --- | ----------- | ------- |
199
199
| `status_codes` | Defines an array of span status codes (`OK`, `ERROR`, `UNSET`) to filter traces. Traces are sampled if any span matches a listed status code. For example, `status_codes: [ERROR, UNSET]` captures traces with errors or unset statuses. | _none_ |
200
+
| `type` | Sets the condition type. For the status code condition, this value must be `status_code`. | _none_ |
200
201
201
202
The following example configuration samples only spans with the `ERROR` status code.
202
203
@@ -240,11 +241,11 @@ This conditional lets you sample traces based on specific span or resource attri
240
241
The string attribute condition uses the following `conditions` configuration parameters:
241
242
242
243
| Key | Description | Default |
243
-
| --- | ----------- | --------|
244
-
| `type` | Sets the condition type. For the string attribute condition, this value must be `string_attribute`. | _none_ |
244
+
| --- | ----------- | ------- |
245
245
| `key` | Specifies the span or resource attribute to match (for example, `"service.name"`). | _none_ |
246
-
| `values` | Defines an array of accepted values for the attribute. A trace is sampled if any span contains a matching key-value pair: `["payment-processing"]`| _none_ |
247
246
| `match_type` | Defines how attributes are compared: `strict`ensures exact value matching (and is case-sensitive), `exists` checks if the attribute is present regardless of its value, and `regex` uses regular expression pattern matching. | `strict` |
247
+
| `type` | Sets the condition type. For the string attribute condition, this value must be `string_attribute`. | _none_ |
248
+
| `values` | Defines an array of accepted values for the attribute. A trace is sampled if any span contains a matching key-value pair: `["payment-processing"]`| _none_ |
248
249
249
250
The following example configuration waits two seconds before making a decision. It then samples traces based on string matching key-value pairs:
250
251
@@ -313,12 +314,12 @@ This condition samples traces based on numeric attribute values of a defined key
313
314
The numeric attribute condition uses the following `conditions` configuration parameters:
314
315
315
316
| Key | Description | Default |
316
-
| --- | ----------- | --------|
317
-
| `type` | Sets the condition type. For the numeric attribute condition, this value must be `numeric_attribute`. | _none_ |
317
+
| --- | ----------- | ------- |
318
318
| `key` | Specifies the span or resource attribute to match (for example, `"service.name"`). | _none_ |
319
-
| `min_value`| The minimum inclusive value for the numeric attribute. Traces with values greater than or equal to the `min_value` are sampled. | _none_ |
320
-
| `max_value` | The maximum inclusive value for the numeric attribute. Traces with values less than or equal to the `max_value` are sampled. | _none_ |
321
319
| `match_type` | This defines how attribute values are evaluated: `strict`matches exact values, `exists` checks if the attribute is present, regardless of its value. | `strict` |
320
+
| `max_value` | The maximum inclusive value for the numeric attribute. Traces with values less than or equal to the `max_value` are sampled. | _none_ |
321
+
| `min_value` | The minimum inclusive value for the numeric attribute. Traces with values greater than or equal to the `min_value` are sampled. | _none_ |
322
+
| `type` | Sets the condition type. For the numeric attribute condition, this value must be `numeric_attribute`. | _none_ |
322
323
323
324
The following example configuration samples only spans with the key `http.status code` with numeric values between `400` and `504` inclusive.
324
325
@@ -364,9 +365,9 @@ This condition samples traces based on a boolean attribute value of a defined ke
364
365
The Boolean attribute condition uses the following `conditions` configuration parameters:
365
366
366
367
| Key | Description | Default |
367
-
| --- | ----------- | --------|
368
-
| `type` | Sets the condition type. For the Boolean attribute condition, this value must be `boolean_attribute`. | _none_ |
368
+
| --- | ----------- | ------- |
369
369
| `key` | Specifies the span or resource attribute to match (for example, `"service.name"`). | _none_ |
370
+
| `type` | Sets the condition type. For the Boolean attribute condition, this value must be `boolean_attribute`. | _none_ |
The following example configuration waits two seconds before making a decision. It then samples traces that have the key `user.logged` set to `false`.
@@ -412,7 +413,7 @@ This condition samples traces based on metadata stored in the W3C `trace_state`
412
413
The trace state condition uses the following `conditions` configuration parameters:
413
414
414
415
| Key | Description | Default |
415
-
| --- | ----------- | --------|
416
+
| --- | ----------- | -------|
416
417
| `type` | Sets the condition type. For the trace state condition, this value must be `trace_state`. | _none_ |
417
418
| `values` | Defines a list of key, value pairs to match against the `trace_state`. A trace is sampled if any of the specified values exist in the `trace_state` field. Matching follows OR logic, meaning at least one value must be present for sampling to occur. | _none_ |
0 commit comments