[openstack-dev] [kolla] Monitoring tooling

Jeffrey Zhang zhang.lei.fly at gmail.com
Mon Jul 25 15:30:15 UTC 2016


what the filesystem usage is? if I have multi mount points, could it read
the all?
i tried the -v /:/rootfs trick, seem it only export the / filesystem

$ mount | grep system-home
/dev/mapper/system-home on /home type ext4 (rw,noatime,discard,data=ordered)
$ mount | grep system-root


/dev/mapper/system-root on / type ext4 (rw,noatime,discard,data=ordered)

$ docker run -it --rm -v /:/rootfs:ro centos:7 bash
[root at d34a95361150 /]# mount | grep system-home
/dev/mapper/system-home on /rootfs/home type ext4
(rw,noatime,discard,data=ordered)
/dev/mapper/system-home on /etc/resolv.conf type ext4
(rw,noatime,discard,data=ordered)
/dev/mapper/system-home on /etc/hostname type ext4
(rw,noatime,discard,data=ordered)
/dev/mapper/system-home on /etc/hosts type ext4
(rw,noatime,discard,data=ordered)

[root at 7663afac84ce /]# mount | grep system-root
/dev/mapper/system-root on /rootfs type ext4
(ro,noatime,discard,data=ordered)


About the processes, you can try `--pid host`, like
#docker run -it --rm --pid host centos:7 ps aux | wc
    333    3744   26656


On Mon, Jul 25, 2016 at 10:01 PM, Mathias Ewald <mewald at evoila.de> wrote:

> Dave, I have quite successfully tested what is suggested in
> https://github.com/influxdata/telegraf/issues/218. The following
> dashboard shows what I am able to retrieve from the host so far:
>
>
> I am pretty sure all values are host related with one exception: The total
> number of processes. Values like 2 or 3 smell like container values ;) Must
> have something to do with the HOST_PROC and HOST_SYS variables not being
> picked up or something ...
>
>
> I am pretty sure for Sensu you could take a similar approach.
>
> cheers
> Mathias
>
>
>
> 2016-07-25 15:16 GMT+02:00 Dave Walker <email at daviey.com>:
>
>> So, this is one of the areas i'm currently on with the Sensu work.  I've
>> been experimenting with a privileged container, which is very similar to
>> our current kolla_toolbox container.
>>
>> The agent certainly needs to be in it's own container, with access to be
>> able to run commands in other namespaces / containers.
>>
>> On 25 July 2016 at 11:58, Mathias Ewald <mewald at evoila.de> wrote:
>>
>>> Excellent point ... I just checked what happens when running telegraf in
>>> a container: You'll get paths like
>>>
>>> /etc/hostname
>>> /etc/hosts
>>> /var/log/kolla
>>>
>>> and others as available file systems. I guess it makes no sense at all
>>> then to containerize monitoring agents ... Sensu is going to have the same
>>> problems.
>>>
>>> Any suggestions?
>>>
>>>
>>> 2016-07-25 9:39 GMT+02:00 Jeffrey Zhang <zhang.lei.fly at gmail.com>:
>>>
>>>> I am open to the choice of tools. But i am worried on thing: how to
>>>> get all the host disk usage when containerized the monitor tool?
>>>>
>>>>
>>>>
>>>> On Mon, Jul 25, 2016 at 2:12 PM, Mathias Ewald <mewald at evoila.de>
>>>> wrote:
>>>> > Understood.
>>>> >
>>>> > 2016-07-25 7:34 GMT+02:00 Matthias Runge <mrunge at redhat.com>:
>>>> >>
>>>> >> On 25/07/16 06:38, Mathias Ewald wrote:
>>>> >> > Hi, correct me if wrong please: Isn't gnocchi more targeting cloud
>>>> >> > tenants rather than cloud ops? If that's the case I wont find info
>>>> like
>>>> >> > "controller cpu usage" or "hypervisor memory usage".
>>>> >> >
>>>> >> > Cheers
>>>> >> > Mathias
>>>> >> >
>>>> >> Uhm, in this scenario, gnocchi just used as time-series database.
>>>> It's
>>>> >> up to you, what you feed in. collectd collects whatever you want and
>>>> put
>>>> >> it into your database.
>>>> >>
>>>> >> Best,
>>>> >> Matthias
>>>> >>
>>>> >> --
>>>> >> Matthias Runge <mrunge at redhat.com>
>>>> >>
>>>> >> Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
>>>> >> Commercial register: Amtsgericht Muenchen, HRB 153243,
>>>> >> Managing Directors: Charles Cachera, Michael Cunningham,
>>>> >>                     Michael O'Neill, Eric Shander
>>>> >>
>>>> >>
>>>> __________________________________________________________________________
>>>> >> OpenStack Development Mailing List (not for usage questions)
>>>> >> Unsubscribe:
>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>> >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Mobil: +49 176 10567592
>>>> > E-Mail: mewald at evoila.de
>>>> >
>>>> > evoila GmbH
>>>> > Wilhelm-Theodor-Römheld-Str. 34
>>>> > 55130 Mainz
>>>> > Germany
>>>> >
>>>> > Geschäftsführer: Johannes Hiemer
>>>> >
>>>> > Amtsgericht Mainz HRB 42719
>>>> >
>>>> > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>>>> > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
>>>> E-Mail
>>>> > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender
>>>> und
>>>> > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>>>> > Weitergabe dieser Mail ist nicht gestattet.
>>>> >
>>>> > This e-mail may contain confidential and/or privileged information.
>>>> If You
>>>> > are not the intended recipient (or have received this e-mail in error)
>>>> > please notify the sender immediately and destroy this e-mail. Any
>>>> > unauthorised copying, disclosure or distribution of the material in
>>>> this
>>>> > e-mail is strictly forbidden.
>>>> >
>>>> >
>>>> __________________________________________________________________________
>>>> > OpenStack Development Mailing List (not for usage questions)
>>>> > Unsubscribe:
>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Jeffrey Zhang
>>>> Blog: http://xcodest.me
>>>>
>>>>
>>>> __________________________________________________________________________
>>>> OpenStack Development Mailing List (not for usage questions)
>>>> Unsubscribe:
>>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>
>>>
>>>
>>> --
>>> Mobil: +49 176 10567592
>>> E-Mail: mewald at evoila.de
>>>
>>> evoila GmbH
>>> Wilhelm-Theodor-Römheld-Str. 34
>>> 55130 Mainz
>>> Germany
>>>
>>> Geschäftsführer: Johannes Hiemer
>>>
>>> Amtsgericht Mainz HRB 42719
>>>
>>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
>>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>>> Weitergabe dieser Mail ist nicht gestattet.
>>>
>>> This e-mail may contain confidential and/or privileged information. If
>>> You are not the intended recipient (or have received this e-mail in error)
>>> please notify the sender immediately and destroy this e-mail. Any
>>> unauthorised copying, disclosure or distribution of the material in this
>>> e-mail is strictly forbidden.
>>>
>>>
>>> __________________________________________________________________________
>>> OpenStack Development Mailing List (not for usage questions)
>>> Unsubscribe:
>>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
>
> --
> Mobil: +49 176 10567592
> E-Mail: mewald at evoila.de
>
> evoila GmbH
> Wilhelm-Theodor-Römheld-Str. 34
> 55130 Mainz
> Germany
>
> Geschäftsführer: Johannes Hiemer
>
> Amtsgericht Mainz HRB 42719
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail ist nicht gestattet.
>
> This e-mail may contain confidential and/or privileged information. If You
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorised copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Regards,
Jeffrey Zhang
Blog: http://xcodest.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160725/fc17435f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2016-07-25 at 15.58.01.png
Type: image/png
Size: 507589 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160725/fc17435f/attachment-0001.png>


More information about the OpenStack-dev mailing list