Giter VIP home page Giter VIP logo

docker-collector-metrics's Introduction

docker-collector-metrics

docker-collector-metrics is a Docker container that uses Metricbeat to collect metrics from other Docker containers and forward those metrics to your Logz.io account.

To use this container, you'll set environment variables in your docker run command. docker-collector-metrics uses those environment variables to generate a valid Metricbeat configuration for the container. docker-collector-metrics mounts docker.sock to the container itself, allowing Metricbeat to collect the metrics and metadata.

By default, docker-collector-metrics ships container, cpu, diskio, healthcheck, info, memory, and network metrics.

docker-collector-metrics ships metrics only. If you want to ship logs to Logz.io, see docker-collector-logs.

docker-collector-metrics setup

1. Pull the Docker image

Download the logzio/docker-collector-metrics image:

docker pull logzio/docker-collector-metrics

2. Run the Docker image

For a complete list of options, see the parameters below the code block.👇

docker run --name docker-collector-metrics \
--env LOGZIO_TOKEN="<ACCOUNT-TOKEN>" \
--env LOGZIO_URL="<LISTENER-URL>:5015" \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
logzio/docker-collector-metrics

Parameters

Parameter Description
LOGZIO_TOKEN Required. Your Logz.io account token. Replace <ACCOUNT-TOKEN> with the token of the account you want to ship to.
LOGZIO_URL Required. Logz.io listener URL to ship the metrics to. This URL changes depending on the region your account is hosted in. For example, accounts in the US region ship to listener.logz.io, and accounts in the EU region ship to listener-eu.logz.io.
For more information, see Account region on the Logz.io Docs.
LOGZIO_TYPE Default: docker-collector-metrics
Logz.io type you'll use with this Docker. This is shown in your logs under the type field in Kibana. Logz.io applies parsing based on type.
matchContainerName Comma-separated list of containers you want to collect metrics from. If a container's name partially matches a name on the list, that container's metrics are shipped. Otherwise, its metrics are ignored.
Note: Can't be used with skipContainerName
skipContainerName Comma-separated list of containers you want to ignore. If a container's name partially matches a name on the list, that container's metrics are ignored. Otherwise, its metrics are shipped.
Note: Can't be used with matchContainerName

Note: By default, metrics from docker-collector-logs and docker-collector-metrics containers are ignored.

3. Check Logz.io for your metrics

Spin up your Docker containers if you haven’t done so already. Give your metrics a few minutes to get from your system to ours, and then open Kibana.

Change log

  • v0.0.2: added the ability to set the type to fetched metrics.

docker-collector-metrics's People

Contributors

amosd92-zz avatar ds17f avatar idohalevi avatar imnotashrimp avatar yyyogev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.