Skip to content

Latest commit

 

History

History

task-014-metricbeat

To start metricbeat in kubernetes cluster and ship the kubernetes metrics to elastic search which can be viewed by kibana

Pre-requisites

  • elastic-search-docker:

  • 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 and 24-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
  • Now you can check you infrastructure in kibana as showing in the following screenshot (Observability - metrics)

    • Infra VMs

    • Infra Pods

    • Pod Metrics

    • Pre Built Imported Dashboard

    • Pre Built System - Overview Dashboard

    • Pre Built Host Overview Dashboard

    • Pre Built Containers Dashboard