Here is my comparison: EC2 FGCP Mock CPUUtilization cpuUtilization cpuUtilization
NetworkIn nicInputByte nicInputByte NetworkOut nicOutputByte nicOutputByte - nicInputPacket nicInputPacket - nicOutputPacket nicOutputPacket DiskReadOps diskReadRequestCount diskReadRequestCount DiskWriteOps diskWriteRequestCount diskWriteRequestCount DiskReadBytes - - DiskWriteBytes - - - diskReadSector diskReadSector - diskWriteSector diskWriteSector (I've taken the EC2 metric names from output Michal sent to me at the time). Five look like a match. I'm thinking two options: 1. Come up with 5 new metric names that capture those and won't clash with any other providers' current or future metric names, and add them to the collection returned by DC. Future proof, but would mean a lot of double data being returned. 2. Take those 5 names from EC2 (as they were already supported in DC v1.0) and replace the equivalents in FGCP and mock. The disadvantage of that is that if EC2 adds e.g. a DiskReadSector metric, FGCP and mock would need to have two to keep backwards compatibility. Also, EC2 and FGCP metrics (and names) are obtained dynamically using an API so we may not know when new metrics are added. (Well, I would know for FGCP but not for EC2.) If you don't mind breaking compatibility for EC2, there may be an option 1b: Come up with 5 new metric names that capture those and won't clash with any other providers' current or future metric names, and use those instead of the provider specific metric names. But that's postponing the decision: what would we do if ec2 adds a e.g. DiskReadSector metric in a next version and we introduce a new common metric for it, what would we do with the current diskReadSector metric in FGCP? Return both? Clearly this is something that should have been considered and decided when the ec2 metrics were introduced. Regards, Dies > -----Original Message----- > From: David Lutterkort [mailto:[email protected]] > Sent: Saturday, 18 August 2012 4:35 AM > To: [email protected] > Subject: Re: normalised metric names? > > On Thu, 2012-08-16 at 13:36 +1000, Koper, Dies wrote: > > A while ago I implemented statistics for the mock and fgcp drivers. > > As suggested by Michal at the time, the fgcp driver lists the stats that > > FGCP supports, using the metric names the FGCP uses. > > Therefore, the metric name to query to the cpu utilization ratio > > parameter for an instance running on ec2 is different than for an > > instance on the fgcp. > > Many metrics may be provider specific, or at least not commonly > > supported, some are very common. > > Could you define and expose a set of common metric names? > > It would bre really helpful (if you have it already) if you could post a > list that compars the FGCP metric names with the EC2 ones ... since you > are probably the most familiar with them at this points, I think you > should get to choose, too ;) > > David >
