Enabling CAdvisor's default disabled metrics

10 views
Skip to first unread message

Ankita Khot

unread,
Mar 13, 2020, 6:20:02 AM3/13/20
to Prometheus Users
How to enable the metrics that are by default disable for the cAdvisor like container_network_tcp_usage_total through yml file ? 

Christian Hoffmann

unread,
Mar 14, 2020, 7:35:17 AM3/14/20
to Ankita Khot, Prometheus Users
Hi,

On 3/13/20 11:20 AM, Ankita Khot wrote:
> How to enable the metrics that are by default disable for the cAdvisor
> like container_network_tcp_usage_total through yml file ? 

I don't know cadvisor details at all, but it looks like those metrics
are disabled by default:

https://github.com/google/cadvisor/blob/0ff17b8d0df3712923c46ca484701b876d02dfee/cadvisor.go#L78

Seems like you would have to pass --disable_metrics 'foo,bar' (with
everything you want to keep disabled, except for the tcp metrics):

https://github.com/google/cadvisor/issues/2144

Kind regards,
Christian
Reply all
Reply to author
Forward
0 new messages