Commit Graph

10 Commits

Author SHA1 Message Date
Tim Allclair
3b3a855ba4
Cleanup cAdvisor error responses with proper headers & response codes 2017-08-10 12:32:25 -07:00
Random-Liu
66c95c765f Set ContinueOnError for prometheus http handler. 2017-06-20 11:56:21 -07:00
Tobias Schmidt
c5ee516e6f Stop using the global prometheus registry
Replace usage of the global Prometheus registry with a private registry
object which will be exported under the given prometheus path.
2017-05-23 17:37:52 +02:00
Tobias Schmidt
e76096d4f6 Provide option to control Prometheus labels
This change generalizes the existing ContainerNameToLabelsFunc to allow the user to fully control all labels attached to exported Prometheus metrics. The existing behavior is available as DefaultContainerLabelsFunc and is used if no custom function is provided.

This will allow Kubernetes to filter out its internal Docker labels.
2016-08-22 17:26:36 -04:00
Lei Xue
dbbe38dfed re-order the import package 2015-11-30 16:43:22 +08:00
mqliang
ce001dcd4e Fix imported package names to not use mixedCaps or under_scores 2015-10-22 12:10:57 +08:00
Jimmi Dyson
5db9f8674e Registration of custom function to map container name to prometheus labels 2015-10-07 11:30:58 +01:00
Justin Santa Barbara
5b25e20413 Return error if can't register digest handler
This was caught by go vet.
2015-04-07 08:43:27 -07:00
Johannes 'fish' Ziemke
822d60ba8a Provide cadvisor stats as prometheus metrics 2015-03-11 20:51:06 +01:00
Victor Marmol
d357c34f22 Refactor and centralize HTTP registration. 2015-03-10 18:00:10 -07:00