Skip to content

Commit

Permalink
Make example simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Jul 31, 2024
1 parent 45e59c7 commit 3ed44dc
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,18 @@ information.
This example scrapes prometheus unix metrics and writes them to the console:

```alloy
prometheus.exporter.unix "default" { }
otelcol.receiver.otlp "default" {
grpc {}
http {}
prometheus.scrape "default" {
targets = prometheus.exporter.unix.default.targets
forward_to = [otelcol.receiver.prometheus.default.receiver]
}
otelcol.receiver.prometheus "default" {
output {
metrics = [otelcol.exporter.logging.default.input]
logs = [otelcol.exporter.logging.default.input]
traces = [otelcol.exporter.logging.default.input]
}
}
otelcol.exporter.logging "default" {
verbosity = "detailed"
sampling_initial = 1
sampling_thereafter = 1
}
otelcol.exporter.logging "default" {}
```
<!-- START GENERATED COMPATIBLE COMPONENTS -->

Expand Down

0 comments on commit 3ed44dc

Please sign in to comment.