Hi,
I have the following config:
# Kubernetes API server
# (when running metricbeat as a pod)
- module: kubernetes
enabled: true
metricsets:
- apiserver
hosts: ["localhost:8080"]
Metricbeat is run as a daemonset in the cluster.
I get the following error:
2019-07-02T11:39:23.371Z ERROR kubernetes/util.go:90 kubernetes: Querying for pod failed with error: kubernetes api: Failure 404 pods "master0.kube" not found
|2019-07-02T12:14:22.803Z|INFO|kubernetes/util.go:86|kubernetes: Using pod name master0.kube and namespace logs to discover kubernetes node|
|---|---|---|---|
|2019-07-02T12:14:22.836Z|ERROR|kubernetes/util.go:90|kubernetes: Querying for pod failed with error: kubernetes api: Failure 404 pods "master0.kube" not found|
|2019-07-02T12:14:22.841Z|INFO|kubernetes/util.go:86|kubernetes: Using pod name master0.kube and namespace logs to discover kubernetes node|
|2019-07-02T12:14:22.873Z|ERROR|kubernetes/util.go:90|kubernetes: Querying for pod failed with error: kubernetes api: Failure 404 pods "master0.kube" not found|
When I am trying to achieve is to get infrastructure >> Kubernetes tab to work with resource metrics that comes up as no data:
Any Ideas?