Usage of /usr/bin/resource-state-metrics: -add_dir_header If true, adds the file directory to the header of the log messages -alsologtostderr log to standard error as well as files (no effect when -logtostderr=true) -auto-gomaxprocs Automatically set GOMAXPROCS to match CPU quota. (default true) -cardinality-warning-ratio float Ratio of cardinality threshold at which to emit warning conditions (0.0-1.0). Default 0.8 means warnings start at 80% of threshold. (default 0.8) -cel-cost-limit uint Maximum cost budget for CEL expression evaluation. CEL cost represents computational complexity: traversing an object field costs 1, invoking a function varies by complexity. This limit prevents runaway expressions from consuming excessive resources. Typical queries cost 100-10000; increase if legitimate queries hit the limit. (default 100000) -cel-timeout-seconds int Maximum time in seconds for CEL expression evaluation. This timeout enforces a wall-clock limit on query execution to prevent slow expressions from blocking metric generation. Increase if complex legitimate queries timeout. (default 5) -global-cardinality-limit int Maximum total cardinality across all RMM resources. 0 means unlimited. When exceeded, all metric generation is cut off. -kubeconfig string Path to a kubeconfig. Only required if out-of-cluster. -log_backtrace_at value when logging hits line file:N, emit a stack trace -log_dir string If non-empty, write log files in this directory (no effect when -logtostderr=true) -log_file string If non-empty, use this log file (no effect when -logtostderr=true) -log_file_max_size uint Defines the maximum size a log file can grow to (no effect when -logtostderr=true). Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800) -logtostderr log to standard error instead of files (default true) -main-host string Host to expose main metrics on. (default "::") -main-port int Port to expose main metrics on. (default 9999) -master string The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster. -one_output If true, only write logs to their native severity level (vs also writing to each lower severity level; no effect when -logtostderr=true) -ratio-gomemlimit float GOMEMLIMIT to memory quota ratio. (default 0.9) -resource-cardinality-default int Default cardinality limit per RMM resource. Can be overridden per-RMM via configuration YAML. 0 means unlimited. (default 100000) -self-host string Host to expose self (telemetry) metrics on. (default "::") -self-port int Port to expose self (telemetry) metrics on. (default 9998) -skip_headers If true, avoid header prefixes in the log messages -skip_log_headers If true, avoid headers when opening log files (no effect when -logtostderr=true) -starlark-max-steps int Maximum number of Starlark execution steps. This limits computation to prevent infinite loops and runaway scripts. Increase if legitimate scripts hit the limit. (default 100000) -starlark-timeout-seconds int Maximum time in seconds for Starlark script execution. This timeout enforces a wall-clock limit to prevent slow scripts from blocking metric generation. (default 5) -stderrthreshold value logs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2) -v value number for the log level verbosity -version Print version information and quit -vmodule value comma-separated list of pattern=N settings for file-filtered logging -workers int Number of workers processing managed resources in the workqueue. (default 2)