Commit Graph

15 Commits

Author SHA1 Message Date
luhualin
5c41c694a8 add prometheus metrics timestamp 2018-12-11 11:44:17 +08:00
Tolga HOSGOR
8018ee104b added --url_base_prefix option (#2018)
Some reverse proxies do not support overriding 'Location' header
in 3xx responses. This commit adds a --url_base_prefix option
that adds a prefix to all URLs of cAdvisor so that
redirects go to the correct places.
2018-12-04 09:41:51 +03:00
Davanum Srinivas
4da6d809be
Move from glog to klog
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
David Ashpole
c225d06adf don't emit prometheus metrics that are ignored 2018-07-09 13:17:49 -07:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging 2017-11-27 19:48:05 -08:00
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