Skip to content

Hardcoded path #2

@jangaraj

Description

@jangaraj

This zenpack uses hardcoded path to cgroup metrics. For example

/sys/fs/cgroup/cpuacct/docker/${here/id}/cpuacct.stat

But this path depends on used Docker version (execution driver, ..), so it can be also:

/sys/fs/cgroup/cpuacct/system.slice/${here/id}/cpuacct.stat
/sys/fs/cgroup/cpuacct/lxc/${here/id}/cpuacct.stat
/sys/fs/cgroup/cpuacct/libvirt/lxc/${here/id}/cpuacct.stat
...

Implement auto detection of the correct path in the modeller plugin. I was solving this problem in
https://github.com/jangaraj/Zabbix-Docker-Monitoring/blob/master/src/modules/zabbix_module_docker/zabbix_module_docker.c#L469

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions