kubernetes pod metrics in elasticsearch

cpu and memory of kubernetes pods collected by heapster using elasticsearch as a sink

kubernetes pod metrics in elasticsearch screenshot 1
kubernetes pod metrics in elasticsearch screenshot 2
kubernetes pod metrics in elasticsearch screenshot 3

This shows cpu and memory metrics from kubernetes pods collected by heapster using elasticsearch as a sink. Cluster, namespace and pod are provided as template variables. Configure heapster to start with

/heapster
      --source=kubernetes:https://kubernetes.default
      --sink=elasticsearch:http://elasticsearch-host:9200?cluster_name=your_cluster_name

Configure two grafana data sources (for the same elasticsearch url), one using CpuMetricsTimestamp as a time field, another using MemoryMetricsTimestamp as a time field. Seems weird to have the same url in two data sources, but I couldn’t get around it. See screenshot for index template. Set group by time interval in both data sources to your heapster --metric-resolution argument. Heapster default is 1m, so set group by time interval to >1m, see screenshot.

Software versions used:

  • Heapster version: v1.4.2
  • Elasticsearch version: 5.5.1
  • Grafana version: 4.4.3
Revisions
RevisionDescriptionCreated
Elasticsearch

Elasticsearch

by Grafana Labs
Grafana Labs solution

Easily monitor Elasticsearch, a distributed, multitenant full-text search engine, with Grafana Cloud's out-of-the-box monitoring solution.

Learn more

Get this dashboard

Import the dashboard template

or

Download JSON

Datasource
Dependencies