Skip to content

cadvisor job from prometheus/27.1.0

Github source: 0aaa3e3 or master branch

Properties

cadvisor

allow_dynamic_housekeeping

Whether to allow the housekeeping interval to be dynamic

application_metrics_count_limit

Max number of application metrics to store (per container)

boot_id_file

Comma-separated list of files to check for boot-id. Use the first one that exists

bq_account

Service account email

bq_credentials

Credential Key (pem)

bq_id

Client ID

bq_project_id

Bigquery project ID

bq_secret

Client Secret

collector_cert

Collector’s certificate, exposed to endpoints for certificate based authentication

collector_key

Key for the collector’s certificate

container_hints

Location of the container hints file

containerd

containerd endpoint

containerd_namespace

containerd namespace

disable_metrics

comma-separated list of metrics to be disabled. Options are ‘disk’, ‘network’, ‘tcp’

disable_root_cgroup_stats

Disable collecting root Cgroup stats

docker

docker endpoint

docker_env_metadata_whitelist

a comma-separated list of environment variable keys that needs to be collected for docker containers

docker_only

Only report docker containers in addition to root stats

docker_tls

Use TLS to connect to docker

docker_tls_ca

Docker TLS ca (PEM format)

docker_tls_cert

Docker TLS certificate (PEM format)

docker_tls_key

Docker TLS private key (PEM format)

enable_load_reader

Whether to enable cpu load reader

event_storage_age_limit

Max length of time for which to store events (per type)

event_storage_event_limit

Max number of events to store (per type)

global_housekeeping_interval

Interval between global housekeepings

housekeeping_interval

Interval between container housekeepings

http_auth

HTTP auth for the web UI

http_auth_realm

HTTP auth realm for the web UI

http_digest

HTTP digest for the web UI

http_digest_realm

HTTP digest file for the web UI

log_backtrace_at

when logging hits line file:N, emit a stack trace (default :0)

log_cadvisor_usage

Whether to log the usage of the cAdvisor container

log_file

If non-empty, use this log file

log_file_max_size

Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited

machine_id_file

Comma-separated list of files to check for machine-id. Use the first one that exists.

max_housekeeping_interval

Largest interval to allow between container housekeepings

max_procs

max number of CPUs that can be used simultaneously

port

port to listen

Default
8080

profiling

Enable profiling via web interface host:port/debug/pprof/

prometheus_endpoint

Endpoint to expose Prometheus metrics on

raw_cgroup_prefix_whitelist

A comma-separated list of cgroup path prefix that needs to be collected even when -docker_only is specified

skip_headers

If true, avoid header prefixes in the log messages

skip_log_headers

If true, avoid headers when openning log files

stderrthreshold

logs at or above this threshold go to stderr

storage_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

storage_driver_buffer_duration

Writes in the storage driver will be buffered for this duration, and committed to the non memory backends as a single transaction

storage_driver_db

database name

storage_driver_es_enable_sniffer

ElasticSearch uses a sniffing process to find all nodes of your cluster by default, automatically

storage_driver_es_host

ElasticSearch host:port

storage_driver_es_index

ElasticSearch index name

storage_driver_es_type

ElasticSearch type name

storage_driver_host

database host:port

storage_driver_influxdb_retention_policy

influxdb retention policy

storage_driver_kafka_broker_list

kafka broker(s) csv

storage_driver_kafka_ssl_ca

optional certificate authority for TLS client authentication

storage_driver_kafka_ssl_cert

optional certificate for TLS client authentication

storage_driver_kafka_ssl_key

optional key for TLS client authentication

storage_driver_kafka_ssl_verify

verify ssl certificate chain

storage_driver_kafka_topic

kafka topic

storage_driver_password

database password

storage_driver_secure

use secure connection with database

storage_driver_table

table name

storage_driver_user

database username

storage_duration

How long to keep data stored

store_container_labels

convert container labels and environment variables into labels on prometheus metrics for each container

update_machine_info_interval

Interval between machine info update

url_base_prefix

prefix path that will be prepended to all paths to support some reverse proxies

v

log level for V logs

vmodule

comma-separated list of pattern=N settings for file-filtered logging

whitelisted_container_labels

comma separated list of container labels to be converted to labels on prometheus metrics for each container

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/cadvisor/ directory (learn more).

  • bin/cadvisor_ctl (from bin/cadvisor_ctl)
  • config/bq_credentials.pem (from config/bq_credentials.pem)
  • config/docker_tls_ca.pem (from config/docker_tls_ca.pem)
  • config/docker_tls_cert.pem (from config/docker_tls_cert.pem)
  • config/docker_tls_key.pem (from config/docker_tls_key.pem)
  • config/http_auth (from config/http_auth)
  • config/http_digest (from config/http_digest)
  • config/kafka_ssl_ca.pem (from config/kafka_ssl_ca.pem)
  • config/kafka_ssl_cert.pem (from config/kafka_ssl_cert.pem)
  • config/kafka_ssl_key.pem (from config/kafka_ssl_key.pem)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.