Network usage statistics

52 views
Skip to first unread message

wulo...@huawei.com

unread,
Aug 18, 2014, 7:47:40 AM8/18/14
to vcap...@cloudfoundry.org
Hi all,

I have a requitement to get the network usage statistics of app(total bytes of tcp packages) in  warden container.

what kind of tools I can use?

Thanks in advance
Tim

Aristoteles Neto

unread,
Aug 18, 2014, 5:29:45 PM8/18/14
to vcap...@cloudfoundry.org
We have a similar requirement, but more focused around the aggregate usage of all the apps on a space/org, for the purposes of billing.

Are there any plans to integrate network statistics collection as part of the ‘usage’ api?

Aristoteles Neto



--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/9b5e765d-f629-4fb8-8d0f-5c91bc9cc88a%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

James Bayer

unread,
Aug 18, 2014, 8:19:39 PM8/18/14
to vcap...@cloudfoundry.org
no immediate short-term plans, but i've asked the metrics team with alex jackson as a pm and the warden team was is possible today.


To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Thank you,

James Bayer

Ethan

unread,
Aug 20, 2014, 3:48:52 AM8/20/14
to vcap...@cloudfoundry.org
Loggregator 
 *Traffic Controller

-- 
Ethan
Sent with Sparrow

--

Hongliang Sun

unread,
Aug 20, 2014, 5:05:25 AM8/20/14
to vcap...@cloudfoundry.org
Hi, Tim,

        You can collect app network usage by collecting network usage of warden network interface(such as w-17vf5i928a5-0).
        If you agree that these two usages can be regarded as the same, then you can use /proc/net/dev to get the usage.

        Maybe not so proper, but is a thought as well.    :)


Hongliang Sun
Zhejiang University, China

wulo...@huawei.com

unread,
Aug 21, 2014, 2:08:36 AM8/21/14
to vcap...@cloudfoundry.org
Thanks Ethan,

Warden is to use tc to limit bandwidth, but I can find any way of tc to get network usage .
Could you tell more details.

wulo...@huawei.com

unread,
Aug 21, 2014, 2:15:40 AM8/21/14
to vcap...@cloudfoundry.org
Thanks,

Using /proc/net/dev by warden network interface can get the usage, but that includes users' access and other packages(like app  communicates with services), is there any way to get users' access statistics.

Hongliang Sun

unread,
Aug 21, 2014, 11:50:56 AM8/21/14
to vcap...@cloudfoundry.org
Hi, Tim

        I think it must be implemented by checking port of all packets via network interface, since there is no guarantee that service communication must be via TCP(not HTTP).

        Not quite so easy.

Hongliang Sun
Zhejiang University, China   

Ethan

unread,
Aug 22, 2014, 7:28:01 AM8/22/14
to vcap...@cloudfoundry.org
It seems the type of log files is json. You can try to get the field.

Sorry for that I don’t have much experience on Load balancers, Traffic Manager or Application Delivery Controller.

Zeus or SteelApp Traffic Manager may be help.
-- 
Ethan

Reply all
Reply to author
Forward
0 new messages