CADVISOR(1)
β¨ NAME β¨
cAdvisor β manual page for cAdvisor version 0.38.7+ds1 (0.38.7+ds1-1). Also known as CADVISOR(1). Hi bestie, you're in the right place. π
π DESCRIPTION π
Okay so here's the whole vibe: this is the usage of /usr/bin/cadvisor, and every flag is below. No skips, no summaries, periodt. π
π«Ά Usage of /usr/bin/cadvisor
-add_dir_headerβ Iftrue, adds the file directory to the header of the log messages. β¨-allow_dynamic_housekeepingβ Whether to allow the housekeeping interval to be dynamic (defaulttrue). π¦-alsologtostderrβ log to standard error as well as files. π-application_metrics_count_limit intβ Max number of application metrics to store (per container) (default100). π-boot_id_file stringβ Comma-separated list of files to check for boot-id. Use the first one that exists. (default"/proc/sys/kernel/random/boot_id"). πΈ-bq_account stringβ Service account email. π-bq_credentials_file stringβ Credential Key file (pem). π-bq_id stringβ Client ID. πͺͺ-bq_project_id stringβ Bigquery project ID. π-bq_secret stringβ Client Secret (default"notasecret"). π-collector_cert stringβ Collector's certificate, exposed to endpoints for certificate based authentication. π-collector_key stringβ Key for the collector's certificate. ποΈ-container_hints stringβ location of the container hints file (default"/etc/cadvisor/container_hints.json"). π§-containerd stringβ containerd endpoint (default"/run/containerd/containerd.sock"). π³-containerd-namespace stringβ containerd namespace (default"k8s.io"). βΈοΈ-disable_metrics metricsβ 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'. (defaultmemory_numa,sched,hugetlb,referenced_memory,cpu_topology,resctrl,tcp,udp,advtcp,process). π-disable_root_cgroup_statsβ Disable collecting root Cgroup stats. π«-docker stringβ docker endpoint (default"unix:///var/run/docker.sock"). π-docker-tlsβ use TLS to connect to docker. π-docker-tls-ca stringβ path to trusted CA (default"ca.pem"). π-docker-tls-cert stringβ path to client certificate (default"cert.pem"). πͺͺ-docker-tls-key stringβ path to private key (default"key.pem"). π-docker_env_metadata_whitelist stringβ a comma-separated list of environment variable keys matched with specified prefix that needs to be collected for docker containers. π±-docker_onlyβ Only report docker containers in addition to root stats. π³-docker_root stringβ DEPRECATED: docker root is read from docker info (this is a fallback, default:/var/lib/docker) (default"/var/lib/docker"). π-enable_load_readerβ Whether to enable cpu load reader. π-event_storage_age_limit stringβ Max length of time for which to store events (per type). Value is a comma separated list of key values, where the keys are event types (e.g.:creation,oom) or"default"and the value is a duration. Default is applied to all non-specified event types (default"default=24h"). β³-event_storage_event_limit stringβ Max number of events to store (per type). Value is a comma separated list of key values, where the keys are event types (e.g.:creation,oom) or"default"and the value is an integer. Default is applied to all non-specified event types (default"default=100000"). π’-global_housekeeping_interval durationβ Interval between global housekeepings (default1m0s). π§Ή-housekeeping_interval durationβ Interval between container housekeepings (default1s). π§Ό-http_auth_file stringβ HTTP auth file for the web UI. π-http_auth_realm stringβ HTTP auth realm for the web UI (default"localhost"). π-http_digest_file stringβ HTTP digest file for the web UI. ποΈ-http_digest_realm stringβ HTTP digest realm for the web UI (default"localhost"). π-listen_ip stringβ IP to listen on, defaults to all IPs. π‘-log_backtrace_at valueβ when logging hits line file:N, emit a stack trace. π§΅-log_cadvisor_usageβ Whether to log the usage of the cAdvisor container. π-log_dir stringβ If non-empty, write log files in this directory. π-log_file stringβ If non-empty, use this log file. π-log_file_max_size uintβ Defines the maximum size a log file can grow to. Unit is megabytes. If the value is0, the maximum file size is unlimited. (default1800). π¦-logtostderrβ log to standard error instead of files (defaulttrue). π’-machine_id_file stringβ Comma-separated list of files to check for machine-id. Use the first one that exists. (default"/etc/machine-id,/var/lib/dbus/machine-id"). π-max_housekeeping_interval durationβ Largest interval to allow between container housekeepings (default1m0s). β±οΈ-max_procs intβ max number of CPUs that can be used simultaneously. Less than1for default (number of cores). π§-mesos_agent stringβ Mesos agent address (default"127.0.0.1:5051"). π°οΈ-mesos_agent_timeout durationβ Mesos agent timeout (default10s). β²οΈ-perf_events_config stringβ Path to a JSON file containing configuration of perf events to measure. Empty value disabled perf events measuring. π-port intβ port to listen (default8080). π-profilingβ Enable profiling via web interface host:port/debug/pprof/ π§ͺ-prometheus_endpoint stringβ Endpoint to expose Prometheus metrics on (default"/metrics"). π₯-raw_cgroup_prefix_whitelist stringβ A comma-separated list of cgroup path prefix that needs to be collected even when-docker_onlyis specified. π-referenced_reset_interval uintβ Reset interval for referenced bytes (container_referenced_bytesmetric), number of measurement cycles after which referenced bytes are cleared, if set to0referenced bytes are never cleared (default: 0). β»οΈ-skip_headersβ Iftrue, avoid header prefixes in the log messages. π«-skip_log_headersβ Iftrue, avoid headers when opening log files. π-stderrthreshold valueβ logs at or above this threshold go to stderr (default2). π¨-storage_driver driverβ Storage driver to use. Data is always cached shortly in memory, this controls where data is pushed besides the local cache. Empty means none, multiple separated by commas. Options are:<empty>,bigquery,elasticsearch,kafka,redis,statsd,stdout. ποΈ-storage_driver_buffer_duration durationβ Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction (default1m0s). π¦-storage_driver_db stringβ database name (default"cadvisor"). ποΈ-storage_driver_es_enable_snifferβ ElasticSearch uses a sniffing process to find all nodes of your cluster by default, automatically. π-storage_driver_es_host stringβ ElasticSearch host:port (default"http://localhost:9200"). π-storage_driver_es_index stringβ ElasticSearch index name (default"cadvisor"). π-storage_driver_es_type stringβ ElasticSearch type name (default"stats"). π·οΈ-storage_driver_host stringβ database host:port (default"localhost:8086"). π₯οΈ-storage_driver_kafka_broker_list stringβ kafka broker(s) csv (default"localhost:9092"). π¨-storage_driver_kafka_ssl_ca stringβ optional certificate authority file for TLS client authentication. π-storage_driver_kafka_ssl_cert stringβ optional certificate file for TLS client authentication. πͺͺ-storage_driver_kafka_ssl_key stringβ optional key file for TLS client authentication. π-storage_driver_kafka_ssl_verifyβ verify ssl certificate chain (defaulttrue). β-storage_driver_kafka_topic stringβ kafka topic (default"stats"). π¬-storage_driver_password stringβ database password (default"root"). π-storage_driver_secureβ use secure connection with database. π-storage_driver_table stringβ table name (default"stats"). π-storage_driver_user stringβ database username (default"root"). π€-storage_duration durationβ How long to keep data stored (Default:2min). (default2m0s). β³-store_container_labelsβ convert container labels and environment variables into labels on prometheus metrics for each container. If flag set tofalse, then only metrics exported are container name, first alias, and image name (defaulttrue). π·οΈ-update_machine_info_interval durationβ Interval between machine info updates. (default5m0s). π-url_base_prefix stringβ prefix path that will be prepended to all paths to support some reverse proxies. π-v valueβ number for the log level verbosity. π-versionβ print cAdvisor version and exit. π-vmodule valueβ comma-separated list of pattern=N settings for file-filtered logging. π§©-whitelisted_container_labels stringβ comma separated list of container labels to be converted to labels on prometheus metrics for each container.store_container_labelsmust be set tofalsefor this to take effect. π
Source/version: cAdvisor version 0.38.7+ds1 (0.38.7+ds1-1). Date: January 2021. Manual: CADVISOR(1). Bye bestie, go monitor something iconic! π
β¨
π¦ where this page comes from
- ubuntu jammy: cadvisor 0.38.7+ds1-2ubuntu2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms