From b828ce882bc06c05417007744d66a2099c2b3555 Mon Sep 17 00:00:00 2001 From: chrismark Date: Mon, 22 Feb 2021 16:20:30 +0200 Subject: [PATCH] Add example input autodsicover config Signed-off-by: chrismark --- .../elastic-agent-standalone-kubernetes.yml | 25 +++++++++++++++++++ ...-agent-standalone-daemonset-configmap.yaml | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yml b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yml index 46b625fa0ce2..a97a4c6bed70 100644 --- a/deploy/kubernetes/elastic-agent-standalone-kubernetes.yml +++ b/deploy/kubernetes/elastic-agent-standalone-kubernetes.yml @@ -313,6 +313,31 @@ data: - 'https://${env.NODE_NAME}:10250' period: 10s ssl.verification_mode: none + # Add extra input blocks here, based on conditions + # so as to automatically identify targeted Pods and start monitoring them + # using a predefined integration. For instance: + #- name: redis + # type: redis/metrics + # use_output: default + # meta: + # package: + # name: redis + # version: 0.3.6 + # data_stream: + # namespace: default + # streams: + # - data_stream: + # dataset: redis.info + # type: metrics + # metricsets: + # - info + # hosts: + # - '${kubernetes.pod.ip}:6379' + # idle_timeout: 20s + # maxconn: 10 + # network: tcp + # period: 10s + # condition: ${kubernetes.pod.labels.app} == 'redis' --- apiVersion: apps/v1 kind: Deployment diff --git a/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml b/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml index 11c2992c93cb..3e339ef8860a 100644 --- a/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml +++ b/deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset-configmap.yaml @@ -229,3 +229,28 @@ data: - 'https://${env.NODE_NAME}:10250' period: 10s ssl.verification_mode: none + # Add extra input blocks here, based on conditions + # so as to automatically identify targeted Pods and start monitoring them + # using a predefined integration. For instance: + #- name: redis + # type: redis/metrics + # use_output: default + # meta: + # package: + # name: redis + # version: 0.3.6 + # data_stream: + # namespace: default + # streams: + # - data_stream: + # dataset: redis.info + # type: metrics + # metricsets: + # - info + # hosts: + # - '${kubernetes.pod.ip}:6379' + # idle_timeout: 20s + # maxconn: 10 + # network: tcp + # period: 10s + # condition: ${kubernetes.pod.labels.app} == 'redis'