Skip to content

Commit

Permalink
docs: Filtering Prometheus metrics (#3672)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnishtala-sumo authored Apr 22, 2024
1 parent b4c50ca commit 73078a9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,25 @@ are few common examples.

#### Drop unnecessary metrics

You can use the [filter processor](#filter-processor) to drop logs you don't want to be sent to Sumo Logic:
To drop Prometheus histogram metrics using the [filter processor](#filter-processor)

```yaml
sumologic:
metrics:
otelcol:
extraProcessors:
- filter/exclude_sumo_metrics:
metrics:
exclude:
match_type: strict
metric_names:
- otelcol_processor_batch_batch_send_size
```

**Note**: Please use the base metric name to filter Prometheus
[histogram metrics](https://prometheus.io/docs/concepts/metric_types/#histogram)

You can use the [filter processor](#filter-processor) to drop metrics you don't want to be sent to Sumo Logic:

```yaml
sumologic:
Expand Down

0 comments on commit 73078a9

Please sign in to comment.