Skip to content

Commit ca87775

Browse files
committed
Add k8sevents receiver in kube-stack
Signed-off-by: ChrsMark <[email protected]>
1 parent 4b818a1 commit ca87775

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: feature
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: "(kube-stack) Add k8seventsreceiver in kube-stack configurations"
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: elastic-agent
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
#pr: https://github.com/owner/repo/1234
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
issue: https://github.com/elastic/elastic-agent/issues/9791

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ clusterRole:
2626
- apiGroups: [""]
2727
resources: ["configmaps"]
2828
verbs: ["get"]
29+
# Required by the k8s_events receiver
30+
- apiGroups: [ "" ]
31+
resources: [ "events" ]
32+
verbs: [ "get", "list", "watch" ]
2933
# `clusterName` specifies the name of the Kubernetes cluster. It sets the 'k8s.cluster.name' field.
3034
# Cluster Name is automatically detected for EKS/GKE/AKS. Add the below value in environments where cluster name cannot be detected.
3135
# clusterName: myClusterName
@@ -129,7 +133,10 @@ collectors:
129133
key: app.kubernetes.io/version
130134
from: pod
131135
receivers:
136+
# [K8s Events Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8seventsreceiver)
137+
k8s_events:
132138
# [K8s Objects Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sobjectsreceiver)
139+
# NOTE: The k8sobjects receiver for K8s Events collection is being replaced by the k8s_events receiver, it might be removed in future versions of this configuration
133140
k8sobjects:
134141
objects:
135142
- name: events
@@ -178,6 +185,7 @@ collectors:
178185
logs:
179186
receivers:
180187
- k8sobjects
188+
- k8s_events
181189
processors:
182190
- resourcedetection/eks
183191
- resourcedetection/gcp

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ clusterRole:
2626
- apiGroups: [""]
2727
resources: ["configmaps"]
2828
verbs: ["get"]
29+
# Required by the k8s_events receiver
30+
- apiGroups: [""]
31+
resources: ["events"]
32+
verbs: ["get", "list", "watch"]
2933
# `clusterName` specifies the name of the Kubernetes cluster. It sets the 'k8s.cluster.name' field.
3034
# Cluster Name is automatically detected for EKS/GKE/AKS. Add the below value in environments where cluster name cannot be detected.
3135
# clusterName: myClusterName
@@ -109,7 +113,10 @@ collectors:
109113
- "service.name"
110114
- "service.version"
111115
receivers:
116+
# [K8s Events Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8seventsreceiver)
117+
k8s_events:
112118
# [K8s Objects Receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/k8sobjectsreceiver)
119+
# NOTE: The k8sobjects receiver for K8s Events collection is being replaced by the k8s_events receiver, it might be removed in future versions of this configuration
113120
k8sobjects:
114121
objects:
115122
- name: events
@@ -157,6 +164,7 @@ collectors:
157164
logs:
158165
receivers:
159166
- k8sobjects
167+
- k8s_events
160168
processors:
161169
- resourcedetection/eks
162170
- resourcedetection/gcp

0 commit comments

Comments
 (0)