Skip to content

Commit 07c8a36

Browse files
mergify[bot]girodavcmacknz
authored
Set Default Telemetry Collection Interval in EDOT to 60s (#9987) (#10066)
(cherry picked from commit 402db56) Co-authored-by: Davide Girardi <[email protected]> Co-authored-by: Craig MacKenzie <[email protected]>
1 parent 5c7f52a commit 07c8a36

File tree

11 files changed

+59
-12
lines changed

11 files changed

+59
-12
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# REQUIRED
2+
# Kind can be one of:
3+
# - breaking-change: a change to previously-documented behavior
4+
# - deprecation: functionality that is being removed in a later release
5+
# - bug-fix: fixes a problem in a previous version
6+
# - enhancement: extends functionality but does not break or fix existing behavior
7+
# - feature: new functionality
8+
# - known-issue: problems that we are aware of in a given version
9+
# - security: impacts on the security of a product or a user’s deployment.
10+
# - upgrade: important information for someone upgrading from a prior version
11+
# - other: does not fit into any of the other categories
12+
kind: bug-fix
13+
14+
# REQUIRED for all kinds
15+
# Change summary; a 80ish characters long description of the change.
16+
summary: reduce-default-telemetry-frequency
17+
18+
# REQUIRED for breaking-change, deprecation, known-issue
19+
# Long description; in case the summary is not enough to describe the change
20+
# this field accommodate a description without length limits.
21+
description:
22+
Reduce the default telemetry frequency to 60 seconds.
23+
This change aims to lower infrastructure costs and reduce label churn in
24+
time-series storage. High-cardinality labels sampled too frequently inflate
25+
storage and index size, and increase query latency with limited added
26+
value.
27+
Environments that require higher resolution can change the `collection_interval` for `hostmetrics`, `kubeletstats` and `k8s_cluster` receivers to a lower value.
28+
29+
# REQUIRED for all kinds
30+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
31+
component: elastic-agent
32+
33+
# AUTOMATED
34+
# OPTIONAL to manually add other PR URLs
35+
# PR URL: A link the PR that added the changeset.
36+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
37+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
38+
# Please provide it if you are adding a fragment for a different PR.
39+
pr: https://github.com/elastic/elastic-agent/pull/9987
40+
41+
# AUTOMATED
42+
# OPTIONAL to manually add other issue URLs
43+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
44+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
45+
# issue: https://github.com/owner/repo/1234

deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ collectors:
139139
- "DELETED"
140140
# [K8s Cluster Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sclusterreceiver)
141141
k8s_cluster:
142+
collection_interval: 60s
142143
auth_type: serviceAccount # Determines how to authenticate to the K8s API server. This can be one of none (for no auth), serviceAccount (to use the standard service account token provided to the agent pod), or kubeConfig to use credentials from ~/.kube/config.
143144
node_conditions_to_report:
144145
- Ready
@@ -375,7 +376,7 @@ collectors:
375376
type: container
376377
# [Hostmetrics Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver)
377378
hostmetrics:
378-
collection_interval: 10s
379+
collection_interval: 60s
379380
root_path: /hostfs # Mounted node's root file system
380381
scrapers:
381382
cpu:
@@ -445,7 +446,7 @@ collectors:
445446
# [Kubelet Stats Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kubeletstatsreceiver)
446447
kubeletstats:
447448
auth_type: serviceAccount # Authentication mechanism with the Kubelet endpoint, refer to: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kubeletstatsreceiver#configuration
448-
collection_interval: 20s
449+
collection_interval: 60s
449450
endpoint: ${env:OTEL_K8S_NODE_NAME}:10250
450451
node: "${env:OTEL_K8S_NODE_NAME}"
451452
# Required to work for all CSPs without an issue

deploy/helm/edot-collector/kube-stack/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ collectors:
119119
- "DELETED"
120120
# [K8s Cluster Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sclusterreceiver)
121121
k8s_cluster:
122+
collection_interval: 60s
122123
auth_type: serviceAccount # Determines how to authenticate to the K8s API server. This can be one of none (for no auth), serviceAccount (to use the standard service account token provided to the agent pod), or kubeConfig to use credentials from ~/.kube/config.
123124
node_conditions_to_report:
124125
- Ready
@@ -335,7 +336,7 @@ collectors:
335336
type: container
336337
# [Hostmetrics Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver)
337338
hostmetrics:
338-
collection_interval: 10s
339+
collection_interval: 60s
339340
root_path: /hostfs # Mounted node's root file system
340341
scrapers:
341342
cpu:
@@ -405,7 +406,7 @@ collectors:
405406
# [Kubelet Stats Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kubeletstatsreceiver)
406407
kubeletstats:
407408
auth_type: serviceAccount # Authentication mechanism with the Kubelet endpoint, refer to: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/kubeletstatsreceiver#configuration
408-
collection_interval: 20s
409+
collection_interval: 60s
409410
endpoint: ${env:OTEL_K8S_NODE_NAME}:10250
410411
node: '${env:OTEL_K8S_NODE_NAME}'
411412
# Required to work for all CSPs without an issue

internal/pkg/otel/samples/darwin/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
filesystem:
1616
memory:

internal/pkg/otel/samples/darwin/managed_otlp/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
filesystem:
1616
memory:

internal/pkg/otel/samples/darwin/managed_otlp/platformlogs_hostmetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
filesystem:
1616
memory:

internal/pkg/otel/samples/darwin/platformlogs_hostmetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
filesystem:
1616
memory:

internal/pkg/otel/samples/linux/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
disk:
1616
filesystem:

internal/pkg/otel/samples/linux/managed_otlp/logs_metrics_traces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
disk:
1616
filesystem:

internal/pkg/otel/samples/linux/managed_otlp/platformlogs_hostmetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ receivers:
1010

1111
# Receiver for CPU, Disk, Memory, and Filesystem metrics
1212
hostmetrics/system:
13-
collection_interval: 30s
13+
collection_interval: 60s
1414
scrapers:
1515
disk:
1616
filesystem:

0 commit comments

Comments
 (0)