PDA

View Full Version : cced.conf units attribute


dcran
01-31-2008, 01:01 AM
Hi,

I'm setting up some custom monitoring counters using this document:
http://doc.3tera.net/AppLogic2/AdvCustomCounters.html

I'm having problems with passing floating point values. Is there a document that details all of the valid values for the "units" attribute? And specifically, is there one that will let pass floating point values?

Also I set one of my counters to have a 'units' of kilobytes (based on one of the examples having 'bytes' as a unit) and it seems that when that value comes in to the mon appliance, it gets converted again. In other words, 500K shows up on the graph as 5K. What am I missing here?

Thanks,
Daniel

PeterNic
01-31-2008, 01:46 AM
Daniel, I believe we only support integers (signed, 64-bit), no floats; and the units are display only. I may be wrong -- I have sent a request to the person who can answer these questions more precisely.

Regards,
-- Peter

dcran
01-31-2008, 06:06 PM
Ok. I hope that's not the case.
There are many metrics where it is very useful to get more granular results.

Thanks for checking into it for me,

Daniel

PeterNic
02-01-2008, 01:21 AM
Daniel,

Alas, this is the case. We don't support floats as this interface was designed to monitor hundreds of parameters for tens and hundreds of entities (appliances); FP arithmetic is more expensive. We might consider adding them in a future version - please post use cases here.

As a temporary solution, could you use fixed point (e.g., instead of 1.2 seconds, say 1200 msec)?

The units specification in the descriptor is for display purposes only, so that each counter will have a known unit of measure. The unit specification does not cause arithmetic operations (by design). It may make sense in the future to allow multiples (x10, x10^3, etc.) when selecting graphs to view, but that will certainly not be the case during collection where you are currently working. Again, will fixed multiples work (e.g., instead of 65536 bytes say 64 Kbytes) and do the arithmetic in the scripts that submits the custom values?

Best regards,
-- Peter