Commit Graph

6 Commits

Author SHA1 Message Date
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
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
anushree-n
6cc9d44264 Implement Collect method of Collector interface 2015-07-14 11:06:55 -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