e7ca18385f
Rewrote the plugin to look at the cgroups and docker api to generate metrics for docker containers Added using the docker python library to connect to docker Added the ability to set kubernetes specific dimensions if running in a kubernetes cluster Change-Id: I322e1d983c3ec554732fbfe0e14ccb9e6b3b29f5 Co-Authored-By: Tim Buckley <timothy.jas.buckley@hpe.com>
21 lines
678 B
Plaintext
21 lines
678 B
Plaintext
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP
|
|
|
|
# Warning
|
|
# The user running the monasca-agent (usually "mon-agent") must be part of the "docker" group
|
|
|
|
init_config:
|
|
docker_root: /
|
|
|
|
# Timeout on Docker api connection. You may have to increase it if you have many containers.
|
|
# connection_timeout: 3
|
|
|
|
# docker version to use when connecting to the docker api. Default is auto
|
|
# version: "auto"
|
|
|
|
instances:
|
|
# URL of the Docker daemon socket to reach the Docker API. HTTP also works.
|
|
- url: "unix://var/run/docker.sock"
|
|
|
|
# Set to true if you want the kubernetes namepsace and pod name to be set as dimensions
|
|
add_kubernetes_dimensions: True
|