It makes a sentence clear and shows a default value.
```
--collectors string Comma-separated list of collectors to be enabled. Defaults to "services,persistentvolumeclaims,nodes,replicationcontrollers,statefulsets,replicasets,resourcequotas,jobs,namespaces,daemonsets,deployments,limitranges,pods,cronjobs"
```
* Don't set a default --kubeconfig flag value so NewDefaultClientConfigLoadingRules
will pick up the default locations
* Set an ExplicitPath using --kubeconfig flag value
* Remove canonical import path
This either causes issues for the CI or people having the
repo checked out into the correct k8s.io/kube-state-metrics directory
.
* Add Makefile
This commit reworks node metrics in the same manner as deployment
metrics.
The node states are broken out into one time series for each possible
conditional state. One constant metric holds textual meta information
about cluster nodes.
* Rework container restart metric
This commit reworks the container restart metric in the same manner as
deployment metrics. The format remains unchanged to the previous format
as in one metric per container via labels.
* Normalize expected string representation
To be able to compare strings easier when a failure occurs, remove empty
lines and trim whitespace for each line of the expected metrics string.
* Update prometheus client vendoring
* Rework deployment metrics
This change extracts the deployment metrics into their own
deployment collector. The metrics are collected synchronously with
each scrape rather than every 10 seconds.
The `deployment` label replaces the `name` label to avoid name
collisions further up in the monitoring chain.