Commit Graph

12 Commits

Author SHA1 Message Date
anushree-n
04a78502ca Modify generic collector 2015-08-12 17:56:01 -07:00
Rohit Jnagal
dd0d0dd3b1 Add units and data type to spec for custom metrics.
Renamed units to data_type in collector config.
Use units for actual display units eg MB/s, "number of connections".
2015-07-30 06:11:17 +00:00
Rohit Jnagal
c0b3f779f5 Add custom metrics to spec.
Remove spec-related fields from stat.
We can simplify the stats a bit further by handling Int and Float better.
But this was big enough change already.
Verified v1 and v2 spec/stats/appmetrics APIs.
2015-07-25 20:17:54 +00:00
Rohit Jnagal
3f8e065947 Two small fixes to custom metric collection.
- a typo in minPollingFrequency multiplies it with time.Second twice.
- Updating custom metrics is unnecessarily called for all containers.
2015-07-23 01:56:07 +00:00
Rohit Jnagal
a123fd72d8 Add logic to read custom metric config files from container root.
Docker does not provide the rootfs path through docker inspect or statefile
and the path is dependent on the storage driver being used.

Instead of enumerating the storage drivers, we pick a pid from the container
and get the config from /proc/pid/root. Although a bit expensive, this method
works for non-docker containers too.
2015-07-22 15:45:07 +00:00
Rohit Jnagal
df4d8b1da8 Change logic for determining minimum polling frequency.
Since polling is tied to housekeeping, minimum supported polling
frequency is 1s.

Users can specify polling frequency higher than 1s. The polling loop
will be called at the minimum frequency specified in config as long as
its higher than the minimum supported frequency.
2015-07-20 15:57:03 +00:00
anushree-n
6871ed42d6 Modify Collect() method of GenericCollector 2015-07-18 09:49:52 -07:00
anushree-n
6cc9d44264 Implement Collect method of Collector interface 2015-07-14 11:06:55 -07:00
Rohit Jnagal
9e1101f020 Merge pull request #810 from anushree-n/modifyConfig
Modify Collector structure
2015-07-14 09:57:18 -07:00
anushree-n
4f83aae835 Include custom metrics in ContainerStats structure 2015-07-13 21:15:40 -07:00
anushree-n
1083213d22 Modify Collector structure 2015-07-10 14:55:55 -07:00
anushree-n
b4dcc3772a Add a generic config and collector for custom metrics 2015-07-06 19:07:39 -07:00