Skip to content

Instantly share code, notes, and snippets.

@andrewkroh
Created November 21, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewkroh/7a4cd3df376ec21db5884b24d43d95bb to your computer and use it in GitHub Desktop.
Save andrewkroh/7a4cd3df376ec21db5884b24d43d95bb to your computer and use it in GitHub Desktop.
Metricbeat Config for Monitoring a Docker-Machine
# Run `eval $(docker-machine env default)` to set the environment variables used below.
metricbeat.modules:
- module: docker
metricsets: ["cpu", "info", "memory", "network", "diskio", "container"]
hosts: ["${DOCKER_HOST}"]
ssl:
certificate_authority: "${DOCKER_CERT_PATH}/ca.pem"
certificate: "${DOCKER_CERT_PATH}/cert.pem"
key: "${DOCKER_CERT_PATH}/key.pem"
output.console.pretty: true
@prodaptdemo
Copy link

Hi, How to get metrics for all containers in host using metricbeat. what are the changes required in metricbeat config file.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment