Commit Graph

1811 Commits

Author SHA1 Message Date
Vish Kannan
b47498c16e Merge pull request #1045 from timstclair/v2-info-simple
Add V2 ContainerInfo API
2016-01-13 12:04:26 -08:00
Tim St. Clair
e011781a88 Add V2 ContainerInfo API
- Add V2 ContainerInfo struct
- Move v1/v2 conversion functions to a reusable package
- Add V2 ContainerInfo accessor method to Manager
2016-01-13 11:58:09 -08:00
Vish Kannan
01434a1c54 Merge pull request #1020 from miguel250/zfs-support
Add support ZFS filesystem
2016-01-13 11:52:37 -08:00
Vish Kannan
9cfc8ce8b2 Merge pull request #1023 from dqminh/metadata_env
Carry #780: Export env variables as prometheus labels
2016-01-13 11:30:05 -08:00
Tim St. Clair
ac8e627024 Merge pull request #1047 from timstclair/boilerplate
Fix check_boilerplate.sh for 2016
2016-01-13 10:21:54 -08:00
Daniel Dao
e5b6bfa94f add whitelisted env as container metadata
This add Envs to container spec as a metadata source. When using prometheus
exposition format, they will be merged into the list of metrics' labels.

Also changed the cli flag to docker_env_metadata_whitelist, and add refenrences
of whitelist envs to API

Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
2016-01-13 11:22:13 +00:00
Tim St. Clair
1e1736ebc9 Fix shell scripts boilerplate 2016-01-12 12:35:46 -08:00
Tim St. Clair
a352633a17 Fix check_boilerplate.sh for 2016
Copied the kubernetes boilerplate checker from
https://github.com/kubernetes/kubernetes/tree/master/hack/boilerplate,
and updated templates for cAdvisor.
2016-01-12 12:35:38 -08:00
Jimmi Dyson
185771bc34 Merge pull request #1044 from carmark/influxdb_test
fix compile issue of influxdb test
2016-01-10 07:06:47 +00:00
Lei Xue
5b7a2fbd45 refactor the function of StatsEq 2016-01-09 09:20:11 +08:00
Lei Xue
23496fdf03 fix compile issue of influxdb test 2016-01-09 09:16:31 +08:00
Vish Kannan
0800e51cbe Merge pull request #1029 from wangzhezhe/master
replace pannic with fmt.Errorf in the error handling of elasticsearch storage
2016-01-08 12:49:37 -08:00
Vish Kannan
040bdd3cb1 Merge pull request #1040 from jimmidyson/influxdb-0.9
Upgrade InfluxDB storage to InfluxDB 0.9
2016-01-08 10:27:33 -08:00
Jimmi Dyson
1b62cefe7f Merge pull request #1032 from pwittrock/retryregex
Only retry whitelisted test failure…
2016-01-08 07:43:52 +00:00
Phillip Wittrock
ae7f38b16f change whitelist init function name 2016-01-07 10:27:43 -08:00
Jimmi Dyson
706a954e66 Rename influxdb field 2016-01-07 17:35:25 +00:00
Jimmi Dyson
05b435e1eb Tidy up conversion type switch 2016-01-07 17:32:33 +00:00
Jimmi Dyson
49ee94d677 Fix up missing godeps 2016-01-07 14:32:38 +00:00
Matthias Nüßler
071e910ba2 Update InfluxDB dependency to v0.9.5.1 2016-01-07 14:32:38 +00:00
Matthias Nüßler
ada6e3d354 Upgrade InfluxDB storage to InfluxDB 0.9
- Fix #743
- Rewrite InfluxDB storage for new InfluxDB API data structures.
- Store each measurement separately instead of storing all measurements
  in a single big "table" with many columns/fields.
- Use tags add metadata to points, such as the container name. Tags are
  a new feature in InfluxDB 0.9.
2016-01-07 14:32:38 +00:00
Jimmi Dyson
38e05a6ad4 Merge pull request #1041 from jimmidyson/go-1.5
Make Go 1.5 a requirement
2016-01-07 14:10:58 +00:00
Jimmi Dyson
ee73baeef7 Make Go 1.5 a requirement 2016-01-07 10:01:29 +00:00
Tim St. Clair
3a76df3ccf Merge pull request #1009 from carmark/testcase
add unit test for 'validate' package
2016-01-05 18:46:15 -08:00
Phillip Wittrock
144ccdf657 Remove added whitespace 2016-01-05 13:27:50 -08:00
Phillip Wittrock
081f391bba Move whitelist regex list to a config file 2016-01-05 11:52:39 -08:00
Daniel Dao
544b852a3b satitize label name before setting them as prometheus label
Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
2016-01-05 10:49:20 +00:00
Daniel Dao
9131bcb315 fix prometheus regex matching
the previous regex wasnt able to match anything. This regex should hopefully do
better.

Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
2016-01-05 10:49:20 +00:00
Florian Pfitzer
009761cb53 Export image name and env variables as prometheus labels 2016-01-05 10:49:20 +00:00
Lei Xue
29469c7806 add unit test for 'validate' package 2016-01-05 11:27:20 +08:00
Phillip Wittrock
be439fb2bf Add whitelisted test failure for tx packets not equal 2016-01-04 15:09:17 -08:00
Phillip Wittrock
e2b96bb877 Only retry whitelisted test failure flakes instead of retrying on any failure.
We should explicitly be retrying on certain conditions and not blindly doing so.
2016-01-04 14:42:44 -08:00
Phillip Wittrock
38cf3a0972 Merge pull request #1031 from pwittrock/fix_oomparsertest
resolves #1030 oomparser_test should get the current year
2016-01-04 11:36:34 -08:00
Phillip Wittrock
dee3f07b0a resolves #1030 oomparser_test should get the current year for matching the time of death. 2016-01-04 10:50:08 -08:00
wangzhezhe
768aba06cf replace panic with fmt 2016-01-04 13:49:26 +08:00
wangzhezhe
95a6e4e87c replace pannic with fmt.Errorf in elasticsearch storage 2016-01-04 13:15:16 +08:00
Tim St. Clair
0367672b9e Merge pull request #1013 from Snorch/fix-cgroupPathRegExp
Fix cgroupPathRegExp to match path after the first colon after devices
2015-12-15 15:05:48 -08:00
Miguel Perez
e0fef76668 Add support ZFS filesystem
- fix container usage stat not loading on first load
2015-12-15 15:41:19 -05:00
Phillip Wittrock
d7d50e5313 Merge pull request #1017 from pwittrock/retry-tests
Retry cadvisor e2e tests to compensate for test flakyness
2015-12-14 15:22:16 -08:00
Phillip Wittrock
808a917fc0 Retry cadvisor e2e tests to compensate for test flakyness 2015-12-14 13:47:07 -08:00
Pavel Tikhomirov
97257ccf61 v2: Fix cgroupPathRegExp to match path after first colon after devices
If in getCgroupPath in cgroups we have some other hierarchies after
"devices" using ".*" sometimes will cause matching wrong string as
a container path so we need negated character class here: "[^:]*".

e.g.
If cgroups string is
"153:name=systemd:/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope,4:freezer,devices,name=container:/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope,3:cpuacct,cpu,cpuset,name=fairsched:/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope,2:memory:/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope,1:blkio,name=beancounter:/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope"

match[1] will be "blkio" but not:
/system.slice/docker-f55e7cad1fcc02f992e0c33c210ecdc6d641858a665f28370523c27c05bdde0e.scope

These fixes the commit:
4cbd91c761 Make getCgroupPath work in case of named or multi- hierarchies

v2: use negated character class, correct the example, remove .* on
either end as they don't do anything in FindSubmatch.
2015-12-14 10:33:26 +03:00
Jimmi Dyson
634965abc4 Version bump 2015-12-11 13:20:18 +00:00
Jimmi Dyson
5c3494704d Merge pull request #1012 from DirectXMan12/bug/fix-prometheus-metrics-filtering
Fix Prometheus Metrics Filtering
2015-12-10 12:01:49 +00:00
Solly Ross
89e656d2d8 Fix Custom Metrics Documentation
The documentation for custom metrics contained an error in the
Prometheus metrics example JSON, and was also somewhat unclear
as to how the labels worked.
2015-12-09 19:44:41 -05:00
Solly Ross
d11dd29ecd Make Prometheus Collector Filter Custom Metrics
Previously, the Prometheus collector ignored the
`MetricsConfig` field of the custom metrics specification,
simply storing all exposed metrics.  Now, if the `MetricsConfig`
field contains any metric names, only those metrics will be stored
and exposed.

Fixes #1005
2015-12-09 19:44:23 -05:00
Jimmi Dyson
97ad511121 Version bump 2015-12-09 19:58:31 +00:00
Jimmi Dyson
fde344c52f Merge pull request #1010 from piosz/num-stats
Added possibility to not ignore NumStats field in ContainerInfoRequest
2015-12-09 19:51:03 +00:00
Piotr Szczesniak
9e739ec757 Added possibility to not ignore NumStats field in ContainerInfoRequest 2015-12-08 21:29:56 +01:00
Dawn Chen
1d2d38d164 Merge pull request #1006 from vishh/gr-leak
Fix goroutine leak in docker fs handler logic.
2015-12-04 11:29:56 -08:00
Vishnu kannan
a6daa760c8 Fix goroutine leak in docker fs handler logic.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2015-12-04 11:19:49 -08:00
Jimmi Dyson
1d6e0ec9bc Merge pull request #1002 from timstclair/loaddecay
Fix usage of housekeeping_interval flag
2015-12-04 12:55:11 +00:00