To start metricbeat in kubernetes cluster and ship the kubernetes metrics to elastic search which can be viewed by kibana
-
elastic-search-docker:
- You can install elastic-search docker by visiting elastic-search-docker and
-
kibana-docker:
- You can install kibana docker by using this link kibana-docker
-
kube-state-metrics:
- You need to install kube-state-metrics as this will be used by metric beat to featch additional metrics. You can do so by using this task-link task-015-kube-state-metrics
-
Docs referred
-
Change the IPs of elastic-search
20-daemonset.yaml
and24-deployment.yaml
with the public IP which you get. -
Change the IP of kibana in
16-configmap-metricbeat-daemonset.yaml
with the public IP of kibana which you get. -
Apply the k8s resources
$ kubectl apply -f .
- Metricbeat logs after successful connection to elastic search
2020-07-31T10:18:29.404Z INFO [publisher_pipeline_output] pipeline/output.go:144 Connecting to backoff(elasticsearch(http://35.226.68.74:9200))
2020-07-31T10:18:34.475Z INFO [publisher_pipeline_output] pipeline/output.go:152 Connection to backoff(elasticsearch(http://35.226.68.74:9200)) established