Skip to content

Commit

Permalink
telemetry: add hostmetrics to otel-agent (#484)
Browse files Browse the repository at this point in the history
* testing: disable benchmark temporarily

Resolves [#VARLOG-553](https://jira.daumkakao.com/browse/VARLOG-553).

* telemetry: add hostmetrics to otel-agent

Daemonset `otel-agent` now has hostmetrics receiver. It collects metrics
about host like cpu, memory, disk and so on.

See https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/hostmetricsreceiver.

Resolves #VARLOG-545
  • Loading branch information
ijsong authored and GitHub Enterprise committed Aug 17, 2021
1 parent daf9e8a commit e375bf4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pipeline {
}
}

/*
stage("benchmark") {
environment {
TEST_USE_LOGGER = "0"
Expand All @@ -51,6 +52,7 @@ pipeline {
}
}
}
*/

}

Expand Down
15 changes: 14 additions & 1 deletion deploy/k8s/base/otel-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ metadata:
data:
otel-agent-config: |
receivers:
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
disk:
load:
filesystem:
memory:
network:
process:
include:
names: [vmr, vsn]
match_type: strict
otlp:
protocols:
grpc:
Expand Down Expand Up @@ -38,7 +51,7 @@ data:
processors: [batch]
exporters: [otlp]
metrics:
receivers: [otlp]
receivers: [hostmetrics, otlp]
processors: [batch]
exporters: [otlp]
extensions: [health_check, pprof, zpages]
Expand Down
15 changes: 14 additions & 1 deletion deploy/k8s/pm/otel-agent-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ metadata:
data:
otel-agent-config: |
receivers:
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
disk:
load:
filesystem:
memory:
network:
process:
include:
names: [vmr, vsn]
match_type: strict
otlp:
protocols:
grpc:
Expand Down Expand Up @@ -38,7 +51,7 @@ data:
processors: [batch]
exporters: [otlp]
metrics:
receivers: [otlp]
receivers: [hostmetrics, otlp]
processors: [batch]
exporters: [otlp]
extensions: [health_check, pprof, zpages]
Expand Down

0 comments on commit e375bf4

Please sign in to comment.