librato / librato-collectd-docker

Collectd plugin for Docker cgroup metrics
MIT License
9 stars 7 forks source link

"errors":[]}-1 1 Type `cpu_stats/system_cpu_usage' isn't defined. #16

Closed tokyowizard closed 6 years ago

tokyowizard commented 7 years ago

Steps:

  1. Install docker on the instance and run some containers.
  2. Download the Ansible Librato role and patch with https://github.com/librato/ansible-librato/pull/4 because varnish-libs rpm was missing in the repo at provisioning time of writing.
  3. Provision with these relevant settings:
    librato_rh_version: '5.7.1_librato1.413'
    librato_hostname: "{{ ec2_tag_Hostname }}"
    librato_fqdn_lookup: false
    librato_enabled_plugins: ['docker']
    librato_docker_host: "{{ inventory_hostname }}"
    librato_docker_port: 2375
    librato_logging_use_log_file: true
    librato_logging_log_file_log_level: err
    librato_logging_log_file_filename: stdout

I'm getting some metrics, but also getting these errors: (use sudo journalctl -u collectd -f to see the errors)

Jul 14 03:47:02 myhost collectd[15084]: {"measurements":{"summary":{"total":34,"accepted":34,"failed":0}},"errors":[]}{"measurements":{"summary":{"total":37,"accepted":37,"failed":0}},"errors":[]}{"measurements":{"summary":{"total":67,"accepted":67,"failed":0}},"errors":[]}-1 1 Type `cpu_stats/system_cpu_usage' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `memory_stats/stats/hierarchical_memsw_limit' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `memory_stats/stats/swap' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `cpu_stats/online_cpus' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `cpu_stats/throttling_data/periods' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `memory_stats/stats/unevictable' isn't defined.
Jul 14 03:47:02 myhost collectd[15084]: -1 1 Type `memory_stats/usage' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: {"measurements":{"summary":{"total":41,"accepted":41,"failed":0}},"errors":[]}-1 1 Type `memory_stats/stats/unevictable' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `cpu_stats/online_cpus' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `cpu_stats/throttling_data/periods' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `memory_stats/stats/hierarchical_memsw_limit' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `cpu_stats/system_cpu_usage' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `memory_stats/stats/swap' isn't defined.
Jul 14 03:47:06 myhost collectd[15084]: -1 1 Type `memory_stats/usage' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: {"measurements":{"summary":{"total":34,"accepted":34,"failed":0}},"errors":[]}-1 1 Type `memory_stats/usage' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `cpu_stats/online_cpus' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `cpu_stats/system_cpu_usage' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `memory_stats/stats/unevictable' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `memory_stats/stats/swap' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `memory_stats/stats/hierarchical_memsw_limit' isn't defined.
Jul 14 03:47:10 myhost collectd[15084]: -1 1 Type `cpu_stats/throttling_data/periods' isn't defined.

Note: I've checked and compared the collectd-docker.py in /opt/collectd/share/collectd/collectd-docker.py on the instance is the same as in this repo's collectd-docker.py file. Everything except the copyright is the same.