Skip to content

Commit

Permalink
docs: switch to hostmetrics receiver in the configuration examples
Browse files Browse the repository at this point in the history
  • Loading branch information
perk-sumo committed Apr 13, 2023
1 parent c4bf0de commit 645698d
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ See section below on [Collecting logs from files](#collecting-logs-from-files) f

### Basic configuration for metrics

Sumo Logic Distribution for OpenTelemetry Collector uses the [Telegraf Receiver][telegrafreceiver_docs] to ingest metrics.
Sumo Logic Distribution for OpenTelemetry Collector uses the [Host Metrics Receiver][hostmetricsreceiver_docs] to ingest metrics.

Here's a minimal `config.yaml` file that sends the host's memory metrics to Sumo Logic:

Expand All @@ -155,23 +155,21 @@ extensions:
installation_token: ${SUMOLOGIC_INSTALLATION_TOKEN}
receivers:
telegraf:
separate_field: false
agent_config: |
[agent]
interval = "3s"
flush_interval = "3s"
[[inputs.mem]]
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
memory:
service:
extensions: [sumologic]
pipelines:
metrics:
receivers: [telegraf]
receivers: [hostmetrics]
exporters: [sumologic]
```

[telegrafreceiver_docs]: ../pkg/receiver/telegrafreceiver/README.md
[hostmetricsreceiver_docs]: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.75.0/receiver/hostmetricsreceiver/README.md

### Basic configuration for traces

Expand Down Expand Up @@ -231,13 +229,11 @@ receivers:
from: attributes["log.file.path_resolved"]
to: resource["log.file.path_resolved"]
start_at: beginning
telegraf:
separate_field: false
agent_config: |
[agent]
interval = "3s"
flush_interval = "3s"
[[inputs.mem]]
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
memory:
otlp:
protocols:
grpc:
Expand All @@ -249,7 +245,7 @@ service:
receivers: [filelog]
exporters: [sumologic]
metrics:
receivers: [telegraf]
receivers: [hostmetrics]
exporters: [sumologic]
traces:
receivers: [otlp]
Expand Down

0 comments on commit 645698d

Please sign in to comment.