[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14327771#comment-14327771
 ] 

Marcus Sorensen commented on CLOUDSTACK-7583:
---------------------------------------------

Ok, thanks. I'll give it a try. I eventually gleaned that the uri was a 
"graphite://" by reading the code (and actually just stumbled across this 
feature by implementing a new scheduled task and using StatsCollector as a 
template, I've been toying with a DRS type service that would watch host stats 
from StatsCollector and potentially initiate migrations for resource 
balancing). 

Normally for documentation on new features I find a functional spec at 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Design, and between that 
and the jira ticket there's enough information on the implementation to 
understand how to use it (and as a developer, how it works). I suppose at some 
point that needs to be converted and put into the docs, but anyone can do that 
if they have a functional spec to work off of.

> Send statistics collected by StatsCollector to optional Graphite host
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7583
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7583
>             Project: CloudStack
>          Issue Type: New Feature
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: Future
>            Reporter: Wido den Hollander
>            Assignee: Wido den Hollander
>             Fix For: 4.6.0
>
>
> It would be very useful if the StatsCollector inside the management server 
> could also send all the stats collected to a Graphite server in addition to 
> the usage database.
> This allows for easy graph generation for CPU, Network and Disk I/O of 
> Instances and hosts.
> Via a global setting we can configure:
> * Graphite host
> * Graphite port
> * Key prefix
> We can then send Instance and Host information, like:
> cloudstack.stats.instances.<vm id>.cpu.num 1
> cloudstack.stats.instances.<vm id>.cpu.utilization 50
> cloudstack.stats.instances.<vm id>.network.read_kbs 4817
> cloudstack.stats.instances.<vm id>.network.write_kbs 672



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to