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
Copy file name to clipboardExpand all lines: docs/cli-arguments.md
+30-30Lines changed: 30 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,34 +25,34 @@ spec:
25
25
```txt
26
26
$ kube-state-metrics -h
27
27
Usage of ./kube-state-metrics:
28
-
--add_dir_header If true, adds the file directory to the header of the log messages
29
-
--alsologtostderr log to standard error as well as files
30
-
--apiserver string The URL of the apiserver to use as a master
31
-
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.
32
-
-h, --help Print Help text
33
-
--host string Host to expose metrics on. (default "0.0.0.0")
34
-
--kubeconfig string Absolute path to the kubeconfig file
35
-
--labels-allow-list string list of metric names and labels you would like to allow, metric_name=[label1,labeln...],metric_name[]...
36
-
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
37
-
--log_dir string If non-empty, write log files in this directory
38
-
--log_file string If non-empty, use this log file
39
-
--log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
40
-
--logtostderr log to standard error instead of files (default true)
41
-
--metric-allowlist string Comma-separated list of metrics to be exposed. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
42
-
--metric-denylist string Comma-separated list of metrics not to be enabled. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
43
-
--namespaces string Comma-separated list of namespaces to be enabled. Defaults to ""
44
-
--pod string Name of the pod that contains the kube-state-metrics container. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
45
-
--pod-namespace string Name of the namespace of the pod specified by --pod. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
46
-
--port int Port to expose metrics on. (default 8080)
47
-
--resources string Comma-separated list of Resources to be enabled. Defaults to "certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments"
48
-
--shard int32 The instances shard nominal (zero indexed) within the total number of shards. (default 0)
49
-
--skip_headers If true, avoid header prefixes in the log messages
50
-
--skip_log_headers If true, avoid headers when opening log files
51
-
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
52
-
--telemetry-host string Host to expose kube-state-metrics self metrics on. (default "0.0.0.0")
53
-
--telemetry-port int Port to expose kube-state-metrics self metrics on. (default 8081)
54
-
--total-shards int The total number of shards. Sharding is disabled when total shards is set to 1. (default 1)
55
-
-v, --v Level number for the log level verbosity
56
-
--version kube-state-metrics build version information
57
-
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
28
+
--add_dir_header If true, adds the file directory to the header of the log messages
29
+
--alsologtostderr log to standard error as well as files
30
+
--apiserver string The URL of the apiserver to use as a master
31
+
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.
32
+
-h, --help Print Help text
33
+
--host string Host to expose metrics on. (default "0.0.0.0")
34
+
--kubeconfig string Absolute path to the kubeconfig file
35
+
--labels-metric-allow-list string Allows to pass a list of additional Kubernetes label keys that will be used in the resource' labels metric. By default the metric contains only name and namespace labels. To include additional labels provide a list of resource names in their plural form and Kubernetes label keys you would like to allow for them (Example: '=namespaces=["k8s-label-1","k8s-label-n",...],pods=["app"],...)'
36
+
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
37
+
--log_dir string If non-empty, write log files in this directory
38
+
--log_file string If non-empty, use this log file
39
+
--log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
40
+
--logtostderr log to standard error instead of files (default true)
41
+
--metric-allowlist string Comma-separated list of metrics to be exposed. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
42
+
--metric-denylist string Comma-separated list of metrics not to be enabled. This list comprises of exact metric names and/or regex patterns. The allowlist and denylist are mutually exclusive.
43
+
--namespaces string Comma-separated list of namespaces to be enabled. Defaults to ""
44
+
--pod string Name of the pod that contains the kube-state-metrics container. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
45
+
--pod-namespace string Name of the namespace of the pod specified by --pod. When set, it is expected that --pod and --pod-namespace are both set. Most likely this should be passed via the downward API. This is used for auto-detecting sharding. If set, this has preference over statically configured sharding. This is experimental, it may be removed without notice.
46
+
--port int Port to expose metrics on. (default 8080)
47
+
--resources string Comma-separated list of Resources to be enabled. Defaults to "certificatesigningrequests,configmaps,cronjobs,daemonsets,deployments,endpoints,horizontalpodautoscalers,ingresses,jobs,leases,limitranges,mutatingwebhookconfigurations,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,poddisruptionbudgets,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses,validatingwebhookconfigurations,volumeattachments"
48
+
--shard int32 The instances shard nominal (zero indexed) within the total number of shards. (default 0)
49
+
--skip_headers If true, avoid header prefixes in the log messages
50
+
--skip_log_headers If true, avoid headers when opening log files
51
+
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
52
+
--telemetry-host string Host to expose kube-state-metrics self metrics on. (default "0.0.0.0")
53
+
--telemetry-port int Port to expose kube-state-metrics self metrics on. (default 8081)
54
+
--total-shards int The total number of shards. Sharding is disabled when total shards is set to 1. (default 1)
55
+
-v, --v Level number for the log level verbosity
56
+
--version kube-state-metrics build version information
57
+
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
0 commit comments