Hi, Dick,
  I put the plugin under:
$ ls -l /opt/collectd/lib/collectd/plugins/python/
total 504
-rw-r--r-- 1 root root    345 Mar 10 19:40 mesos-master.conf
-rw-r--r-- 1 root root  11111 Mar 10 15:06 mesos-master.py
-rw-r--r-- 1 root root    322 Mar 10 19:44 mesos-slave.conf
-rw-r--r-- 1 root root   6808 Mar 10 15:06 mesos-slave.py
-rw-r--r-- 1 root root 288892 Mar 10 19:35 python.a
-rwxr-xr-x 1 root root    969 Mar 10 19:35 python.la
-rwxr-xr-x 1 root root 188262 Mar 10 19:35 python.so

And in /opt/collectd/etc/collectd.conf, I set:

<LoadPlugin python>
        Globals true
</LoadPlugin>
.....

<Plugin python>
        ModulePath "/opt/collectd/lib/collectd/plugins/python/"
        LogTraces true
</Plugin>

$ cat /opt/collectd/lib/collectd/plugins/python/mesos-master.conf
<LoadPlugin "python">
    Globals true
</LoadPlugin>

<Plugin "python">
    ModulePath "/opt/collectd/lib/collectd/plugins/python/"
    Import "mesos-master"
    <Module "mesos-master">
        Host "localhost"
        Port 5050
        Verbose false
        Version "0.21.0"
    </Module>
</Plugin>

Anything wrong with the above settings?

Cheers,
Dan



2015-03-10 17:21 GMT-05:00 Dick Davies <d...@hellooperator.net>:

> Hi Dan
>
> The .py files (the plugin) live in the collectd python path,
> it sounds like maybe you're not loading the plugin .conf file into
> your collectd config?
>
> The output will depend on what your collectd is set to write to, I use
> it with write_graphite.
>
> On 10 March 2015 at 20:41, Dan Dong <dongda...@gmail.com> wrote:
> > Hi, All,
> >   Does anybody use this mesos-collectd-plugin:
> > https://github.com/rayrod2030/collectd-mesos
> >
> > I have installed collectd and this plugin, then configured it as
> > instructions and restarted the collectd daemon, why seems nothing
> happens on
> > the mesos:5050 web UI( python plugin has been turned on in
> collectd.conf).
> >
> > My question is:
> > 1. Should I install collectd and this mesos-collectd-plugin on each
> master
> > and slave nodes and restart collectd daemon? (This is what I have done.)
> > 2. Should the config file mesos-master.conf only configured on master
> node
> > and
> >     mesos-slave.conf only configured on slave node?(This is what I have
> > done.)
> >     Or both of them should only appear on master node?
> > 3. Is there an example( or a figure) of what output one is expected to
> see
> > by this plugin?
> >
> > Cheers,
> > Dan
> >
>

Reply via email to