MetricBeat - Kubernetes Daemonset

Hi,

I am relative new to elastic metricbeat. I have deployed the configmap for module and config with the metricbeat daemonset.

On the configmap_module, I am trying to point to the localhost kubelet. Unfortunately I do not see any metrics on kibana for kubernetes pods. Any pointers on what I am missing?

Here is the yml.
apiVersion: v1
kind: ConfigMap
metadata:
name: metricbeat-daemonset-modules
namespace: kube-system
labels:
k8s-app: metricbeat
data:
system.yml: |-
- module: system
period: 10s
metricsets:
- cpu
- load
- memory
- network
- process
- process_summary
#- core
#- diskio
#- socket
processes: ['.*']
process.include_top_n:
by_cpu: 5 # include top 5 processes by CPU
by_memory: 5 # include top 5 processes by memory

- module: system
  period: 1m
  metricsets:
    - filesystem
    - fsstat
  processors:
  - drop_event.when.regexp:
      system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'

kubernetes.yml: |-
- module: kubernetes
metricsets:
- node
- system
- pod
- container
- volume
period: 10s
host: ${NODE_NAME}
hosts: ["https://localhost:10250"]
#ssl.certificate_authorities:
# - /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
#ssl.certificate: /etc/kubernetes/pki/apiserver-kubelet-client.crt
#ssl.key: /etc/kubernetes/pki/apiserver-kubelet-client.key

Thanks,
Antony

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.