Hey,
In order to monitor my k8s cluster, I deployed Elastic, Kibana and Metricbeat by this yaml
In kibana dashboard I can see only metrics of the hosts (cluster nodes) but not metrics of kubernetes resources (Nodes, Pods, Containers, Volumes).
Metrics Hosts:
Metrics Kubernetes:
The metricbeat pod deployed on each node try fetch the metrics of pod, volumns, container etc.. but please see the pod log below:
2020-09-13T11:41:38.543Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:38.543Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.volume: error doing HTTP request to fetch 'volume' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:39.482Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:39.482Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.pod: error doing HTTP request to fetch 'pod' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:40.502Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:40.503Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.container: error doing HTTP request to fetch 'container' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:41.707Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:41.707Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.node: error doing HTTP request to fetch 'node' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:46.004Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:46.004Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.system: error doing HTTP request to fetch 'system' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:48.542Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:48.542Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.volume: error doing HTTP request to fetch 'volume' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:49.481Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:49.481Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.pod: error doing HTTP request to fetch 'pod' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:50.502Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:50.503Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.container: error doing HTTP request to fetch 'container' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:51.704Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:51.704Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.node: error doing HTTP request to fetch 'node' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:56.003Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:56.004Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.system: error doing HTTP request to fetch 'system' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:58.542Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:58.542Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.volume: error doing HTTP request to fetch 'volume' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:59.481Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:41:59.482Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.pod: error doing HTTP request to fetch 'pod' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:00.502Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:00.503Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.container: error doing HTTP request to fetch 'container' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:01.704Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:01.705Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.node: error doing HTTP request to fetch 'node' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:06.004Z WARN transport/tcp.go:53 DNS lookup failure "idit-kube-main": lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:06.004Z INFO module/wrapper.go:252 Error fetching data for metricset kubernetes.system: error doing HTTP request to fetch 'system' Metricset data: error making http request: Get https://idit-kube-main:10250/stats/summary: lookup idit-kube-main on 10.100.200.2:53: no such host 2020-09-13T11:42:07.193Z INFO [monitoring] log/log.go:145 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":11330,"time":{"ms":318}},"total":{"ticks":28180,"time":{"ms":799},"value":28180},"user":{"ticks":1685
The idit-kube-main is name of the machine with installed kubectl that connect to remote cluster and i deployed the ELK by this machine to the remote cluster, but this machine isn't part of the cluster!
So why metricbeat consider this server as host in order to fetch the cluster metrics?
I use ELK version 7.5.2
Please Help