OS Manuals

/usr/bin/resource-state-metrics

FIPS-enabled Kubernetes controller that generates Prometheus metrics for any Kubernetes or custom resource, configured through ResourceMetricsMonitor custom resources with CEL and Starlark resolvers

From resource-state-metrics-fips 0.1.0-r5 (enterprise-packages), captured 2026-11-09 by running resource-state-metrics --help (exit 0). permalink

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)
Options (30)
OptionDescriptionSource
-add_dir_headerIf true, adds the file directory to the header of the log messageshelp
-alsologtostderrlog to standard error as well as files (no effect when -logtostderr=true)help
-auto-gomaxprocsAutomatically set GOMAXPROCS to match CPU quota.help
-cardinality-warning-ratio floatRatio of cardinality threshold at which to emit warning conditions (0.0-1.0).help
-cel-cost-limit uintMaximum cost budget for CEL expression evaluation.help
-cel-timeout-seconds intMaximum time in seconds for CEL expression evaluation.help
-global-cardinality-limit intMaximum total cardinality across all RMM resources.help
-kubeconfig stringPath to a kubeconfig.help
-log_backtrace_at valuewhen logging hits line file:N, emit a stack tracehelp
-log_dir stringIf non-empty, write log files in this directory (no effect when -logtostderr=true)help
-log_file stringIf non-empty, use this log file (no effect when -logtostderr=true)help
-log_file_max_size uintDefines the maximum size a log file can grow to (no effect when -logtostderr=true).help
-logtostderrlog to standard error instead of files (default true)help
-main-host stringHost to expose main metrics on.help
-main-port intPort to expose main metrics on.help
-master stringThe address of the Kubernetes API server.help
-one_outputIf true, only write logs to their native severity level (vs also writing to each lower severity level;help
-ratio-gomemlimit floatGOMEMLIMIT to memory quota ratio.help
-resource-cardinality-default intDefault cardinality limit per RMM resource.help
-self-host stringHost to expose self (telemetry) metrics on.help
-self-port intPort to expose self (telemetry) metrics on.help
-skip_headersIf true, avoid header prefixes in the log messageshelp
-skip_log_headersIf true, avoid headers when opening log files (no effect when -logtostderr=true)help
-starlark-max-steps intMaximum number of Starlark execution steps.help
-starlark-timeout-seconds intMaximum time in seconds for Starlark script execution.help
-stderrthreshold valuelogs at or above this threshold go to stderr when writing to files and stderr (no effect when -logtostderr=true or -alsologtostderr=true) (default 2)help
-v valuenumber for the log level verbosityhelp
-versionPrint version information and quithelp
-vmodule valuecomma-separated list of pattern=N settings for file-filtered logginghelp
-workers intNumber of workers processing managed resources in the workqueue.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.