Hi Dan

I can see a couple of things that could be wrong
(NB: not a collectd expert, but these are differences I see from
my working config).

1. Is /opt/collectd/etc/collectd.conf your main collectd config file?

otherwise, it's not being read at all by collectd.

2. I configure the plugin in that file i.e. the

<Module "mesos-master">

block should be in  /opt/collectd/etc/collectd.conf , not tucked down
in the python module path
directory.

3. Are you sure your master listens on localhost? Mine doesn't, I
needed to set that Host line
to match the IP I set that master to listen on ( e.g. in /etc/mesos-master/ip ).

Pretty sure one of those will do the trick
(NB: you'll only get metrics from the elected master; the 'standby'
masters still get polled
but collectd will ignore any data from them unless they're the primary)

On 11 March 2015 at 19:52, Dan Dong <[email protected]> wrote:
> 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 <[email protected]>:
>
>> 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 <[email protected]> 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