Skip to content

Commit

Permalink
k8sattrs presets
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Nov 22, 2023
1 parent 3210bee commit 5dc6dc2
Showing 1 changed file with 52 additions and 51 deletions.
103 changes: 52 additions & 51 deletions ci/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ presets:
enabled: true
kubernetesAttributes:
enabled: true
extractAllPodLabels: true
extractAllPodAnnotations: true
kubernetesEvents:
enabled: true
kubeletMetrics:
Expand Down Expand Up @@ -201,57 +203,56 @@ config:
timeout: 5s
override: false
# adds various tags related to k8s
# adds various tags related to k8s
k8sattributes:
passthrough: false
auth_type: "serviceAccount"
pod_association:
- sources:
- from: resource_attribute
name: k8s.pod.ip
extract:
metadata:
- k8s.pod.name
- k8s.pod.uid
- k8s.deployment.name
- k8s.node.name
- k8s.namespace.name
- k8s.pod.start_time
- k8s.replicaset.name
- k8s.replicaset.uid
- k8s.daemonset.name
- k8s.daemonset.uid
- k8s.job.name
- k8s.job.uid
- k8s.cronjob.name
- k8s.statefulset.name
- k8s.statefulset.uid
- container.image.name
- container.image.tag
- container.id
- k8s.container.name
- container.image.name
- container.image.tag
- container.id
labels:
- tag_name: kube_app_name
key: app.kubernetes.io/name
from: pod
- tag_name: kube_app_instance
key: app.kubernetes.io/instance
from: pod
- tag_name: kube_app_version
key: app.kubernetes.io/version
from: pod
- tag_name: kube_app_component
key: app.kubernetes.io/component
from: pod
- tag_name: kube_app_part_of
key: app.kubernetes.io/part-of
from: pod
- tag_name: kube_app_managed_by
key: app.kubernetes.io/managed-by
from: pod
# k8sattributes:
# passthrough: false
# auth_type: "serviceAccount"
# pod_association:
# - sources:
# - from: resource_attribute
# name: k8s.pod.ip
# extract:
# metadata:
# - k8s.pod.name
# - k8s.pod.uid
# - k8s.deployment.name
# - k8s.node.name
# - k8s.namespace.name
# - k8s.pod.start_time
# - k8s.replicaset.name
# - k8s.replicaset.uid
# - k8s.daemonset.name
# - k8s.daemonset.uid
# - k8s.job.name
# - k8s.job.uid
# - k8s.cronjob.name
# - k8s.statefulset.name
# - k8s.statefulset.uid
# - container.image.name
# - container.image.tag
# - container.id
# - k8s.container.name
# - container.image.name
# - container.image.tag
# - container.id
# labels:
# - tag_name: kube_app_name
# key: app.kubernetes.io/name
# from: pod
# - tag_name: kube_app_instance
# key: app.kubernetes.io/instance
# from: pod
# - tag_name: kube_app_version
# key: app.kubernetes.io/version
# from: pod
# - tag_name: kube_app_component
# key: app.kubernetes.io/component
# from: pod
# - tag_name: kube_app_part_of
# key: app.kubernetes.io/part-of
# from: pod
# - tag_name: kube_app_managed_by
# key: app.kubernetes.io/managed-by
# from: pod
batch:
send_batch_max_size: 1000
send_batch_size: 100
Expand Down

0 comments on commit 5dc6dc2

Please sign in to comment.