You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes also -disable_metrics 'process' metric name in running.md,
and updates list of '-disable_metrics' option metrics. Metrics
names are now listed in sorted order.
Note: I've followed the existing documentation convention of giving
cAdvisor option names with two dashes (--enable_metrics) although
current cAdvisor uses only one dash (-enable_metrics).
Copy file name to clipboardExpand all lines: docs/running.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ cAdvisor is now running (in the background) on `http://localhost:8080/`. The set
23
23
- If docker daemon is running with [user namespace enabled](https://docs.docker.com/engine/reference/commandline/dockerd/#starting-the-daemon-with-user-namespaces-enabled),
24
24
you need to add `--userns=host` option in order for cAdvisor to monitor Docker containers,
25
25
otherwise cAdvisor can not connect to docker daemon.
26
-
- If cadvisor scrapes `process metrics` by set flag `--disable_metrics`, you need to add `--pid=host` and `--privileged` for `docker run` to get `/proc/pid/fd` path in host.
26
+
- If cadvisor scrapes `process` metrics due to `--disable_metrics` or `--enable_metrics` options, you need to add `--pid=host` and `--privileged` for `docker run` to get `/proc/pid/fd` path in host.
27
27
- If cAdvisor needs to be run in Docker container without `--privileged` option it is possible to add host devices to container using `--dev` and
28
28
specify security options using `--security-opt` with secure computing mode (seccomp).
29
29
For details related to seccomp please [see](https://docs.docker.com/engine/security/seccomp/), the default Docker profile can be found [here](https://github.com/moby/moby/blob/master/profiles/seccomp/default.json).
Copy file name to clipboardExpand all lines: docs/runtime_options.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,8 @@ cAdvisor stores the latest historical data in memory. How long of a history it s
125
125
--application_metrics_count_limit=100: Max number of application metrics to store (per container) (default 100)
126
126
--collector_cert="": Collector's certificate, exposed to endpoints for certificate based authentication.
127
127
--collector_key="": Key for the collector's certificate
128
-
--disable_metrics=referenced_memory,cpu_topology,resctrl,udp,advtcp,sched,hugetlb,memory_numa,tcp,process: comma-separated list of metrics to be disabled. Options are 'accelerator', 'cpu_topology','disk', 'diskIO', 'memory_numa', 'network', 'tcp', 'udp', 'percpu', 'sched', 'process', 'hugetlb', 'referenced_memory', 'resctrl', 'cpuset'. (default referenced_memory,cpu_topology,resctrl,udp,advtcp,sched,hugetlb,memory_numa,tcp,process)
128
+
--disable_metrics=<metrics>: comma-separated list of metrics to be disabled. Options are accelerator,advtcp,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp. (default advtcp,cpu_topology,cpuset,hugetlb,memory_numa,process,referenced_memory,resctrl,sched,tcp,udp)
129
+
--enable_metrics=<metrics>: comma-separated list of metrics to be enabled. If set, overrides 'disable_metrics'. Options are accelerator,advtcp,cpuLoad,cpu_topology,cpuset,disk,diskIO,hugetlb,memory,memory_numa,network,oom_event,percpu,perf_event,process,referenced_memory,resctrl,sched,tcp,udp.
129
130
--prometheus_endpoint="/metrics": Endpoint to expose Prometheus metrics on (default "/metrics")
@@ -149,7 +150,7 @@ cAdvisor stores the latest historical data in memory. How long of a history it s
149
150
--perf_events_config="" Path to a JSON file containing configuration of perf events to measure. Empty value disables perf events measuring.
150
151
```
151
152
152
-
Core perf events can be exposed on Prometheus endpoint per CPU or aggregated by event. It is controlled through `--disable_metrics`parameter with option `percpu`, e.g.:
153
+
Core perf events can be exposed on Prometheus endpoint per CPU or aggregated by event. It is controlled through `--disable_metrics`and `--enable_metrics` parameters with option `percpu`, e.g.:
153
154
-`--disable_metrics="percpu"` - core perf events are aggregated
154
155
-`--disable_metrics=""` - core perf events are exposed per CPU.
Copy file name to clipboardExpand all lines: docs/storage/prometheus.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Monitoring cAdvisor with Prometheus
2
2
3
-
cAdvisor exposes container and hardware statistics as [Prometheus](https://prometheus.io) metrics out of the box. By default, these metrics are served under the `/metrics` HTTP endpoint. This endpoint may be customized by setting the `-prometheus_endpoint` and `-disable_metrics` command-line flags.
3
+
cAdvisor exposes container and hardware statistics as [Prometheus](https://prometheus.io) metrics out of the box. By default, these metrics are served under the `/metrics` HTTP endpoint. This endpoint may be customized by setting the `-prometheus_endpoint` and `-disable_metrics`or `-enable_metrics`command-line flags.
4
4
5
5
To collect some of metrics it is required to build cAdvisor with additional flags, for details see [build instructions](../development/build.md), additional flags are indicated in "additional build flag" column in table below.
6
6
@@ -14,9 +14,9 @@ To monitor cAdvisor with Prometheus, simply configure one or more jobs in Promet
14
14
15
15
## Prometheus container metrics
16
16
17
-
The table below lists the Prometheus container metrics exposed by cAdvisor (in alphabetical order by metric name):
17
+
The table below lists the Prometheus container metrics exposed by cAdvisor (in alphabetical order by metric name) and corresponding `-disable_metrics` / `-enable_metrics` option parameter:
18
18
19
-
Metric name | Type | Description | Unit (where applicable) | -disable_metrics parameter | additional build flag |
19
+
Metric name | Type | Description | Unit (where applicable) | option parameter | additional build flag |
`container_accelerator_duty_cycle` | Gauge | Percent of time over the past sample period during which the accelerator was actively processing | percentage | accelerator |
@@ -97,9 +97,9 @@ Metric name | Type | Description | Unit (where applicable) | -disable_metrics pa
97
97
98
98
## Prometheus hardware metrics
99
99
100
-
The table below lists the Prometheus hardware metrics exposed by cAdvisor (in alphabetical order by metric name):
100
+
The table below lists the Prometheus hardware metrics exposed by cAdvisor (in alphabetical order by metric name) and corresponding `-disable_metrics` / `-enable_metrics` option parameter:
101
101
102
-
Metric name | Type | Description | Unit (where applicable) | -disable_metrics parameter | addional build flag |
102
+
Metric name | Type | Description | Unit (where applicable) | option parameter | addional build flag |
0 commit comments