HUB
Sign inSign up
kubernetes-metricbeat logo

picoded/kubernetes-metricbeat

By picoded

•Updated about 8 years ago

Getting host container stats into elasticsearch

Image
0

734

picoded/kubernetes-metricbeat repository overview

⁠picoded/kubernetes-metricbeat

https://hub.docker.com/r/picoded/kubernetes-metricbeat/⁠ https://github.com/picoded/dockerfiles/tree/master/logging/kubernetes-metricbeat/⁠

⁠Summary

Getting host container stats into elasticsearch

This container will need be mounted to host network.

If you are using rancherOS, or a restricted OS use the following.

/proc/:/hostfs/proc/:ro /sys/fs/cgroup/:/hostfs/sys/fs/cgroup/:ro /etc/hostname:/hostfs/etc/hostname:ro

If your system allows it, you can simplify the above with the following (not fully tested).

/:/hostfs/:ro

Finally of course, ensured that elasticsearch is configured.

⁠Configuration

# Interval of capturing metrics
ENV METRIC_PERIOD 1s

# Elasticsearch host to push into
ENV ES_HOST    elasticsearch

# Elasticsearch port to push into
ENV ES_PORT    9200

# Elasticsearch protocall to use
ENV ES_PROT    "http"

# Elasticsearch username to use
ENV ES_USER    elasticsearch

# Elasticsearch password to use
ENV ES_PASS    PleaseChangeThisToActualPassword

# Elasticsearch index to use 
ENV ES_INDEX  "metricbeat-%{+yyyy.MM.dd}"

⁠Data collected

Currently this metricbeat is configured to collect the following inside metricbeat.yml

metricsets:
  # CPU stats
  - cpu
  # Per CPU core stats
  - core
  # System Load stats
  - load
  # IO stats
  - diskio
  # Per filesystem stats
  - filesystem
  # File system summary stats
  - fsstat
  # Memory stats
  - memory
  # Network stats
  - network

⁠Issue filling

Any problems / comments / kudos should be filed at github =) https://github.com/picoded/dockerfiles⁠

Tag summary

Content type

Image

Digest

Size

113.3 MB

Last updated

about 8 years ago

docker pull picoded/kubernetes-metricbeat