Skip to content

Commit

Permalink
update otel config
Browse files Browse the repository at this point in the history
  • Loading branch information
smithclay committed Aug 2, 2024
1 parent 826e929 commit 721f10e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions sensu-plugin/bin/config.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
receivers:
hostmetrics:
collection_interval: 10s
collection_interval: 15s
# partial list of possible metric scrapers
scrapers:
cpu:
memory:
disk:
filesystem:
load:
network:
paging:
processes:

processors:
batch:
timeout: 5s
metricstransform/addhost:
transforms:
# Requires the HOSTNAME env var to be set when running the collector
- include: (.*)
match_type: regexp
action: update
new_name: ${env:HOSTNAME}.$${0}
resourcedetection:
detectors: [env,system]

exporters:
carbon:
carbon/hostmetrics:
endpoint: "localhost:2003" # The address of the Carbon/Graphite server
timeout: 10s
retry_on_failure:
enabled: false
resource_to_telemetry_conversion:
enabled: false

service:
pipelines:
metrics:
receivers: [hostmetrics]
processors: [batch, resourcedetection]
exporters: [carbon]
processors: [batch, resourcedetection, metricstransform/addhost]
exporters: [carbon/hostmetrics]

extensions:
health_check:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

PORT = 2003
HOST = '0.0.0.0'
TIMEOUT = 15
TIMEOUT = 30

# TODO: run the collector binary / check if it's running.

Expand Down

0 comments on commit 721f10e

Please sign in to comment.