### Metrics Agent Kubernetes Command Help Source: https://github.com/cloudability/metrics-agent/blob/master/README.md Displays the help information for the `metrics-agent kubernetes` command, outlining its usage and available flags. This is useful for understanding how to configure and run the agent for Kubernetes. ```sh metrics-agent kubernetes --help Command to collect Kubernetes Metrics Usage: metrics-agent kubernetes [flags] Flags: --api_key string Cloudability api key. Not recommended to store as environment variable, instead use CLOUDABILITY_API_KEY_FILEPATH --api_key_filepath Path to the file where the api key is stored, ex: /etc/secrets/CLOUDABILITY_API_KEY --certificate_file string The path to a certificate file. - Optional --cluster_name string Kubernetes Cluster Name - required this must be unique to every cluster. --collection_retry_limit uint Number of times agent should attempt to gather metrics from each source upon a failure (default 1) -h, --help help for kubernetes --insecure When true, does not verify certificates when making TLS connections. Default: False --key_file string The path to a key file. - Optional --outbound_proxy string Outbound HTTP/HTTPS proxy eg: http://x.x.x.x:8080. Must have a scheme prefix (http:// or https://) - Optional --outbound_proxy_auth string Outbound proxy basic authentication credentials. Must defined in the form username:password - Optional --outbound_proxy_insecure When true, does not verify TLS certificates when using the outbound proxy. Default: False --use_proxy_for_getting_upload_url_only When true, the specified proxy will be set for requests to get upload urls for metrics, but not for actually uploading metrics. Default: False --force_kube_proxy When true, forces agent to use the proxy to connect to nodes rather than attempting a direct connection. Default: False --poll_interval int Time, in seconds, to poll the services infrastructure. Default: 180 (default 180) --namespace string The namespace which the agent runs in. Changing this is not recommended. (default `cloudability`) --informer_resync_interval int The amount of time, in hours, between informer resyncs. (default 24) --number_of_concurrent_node_pollers int The number of goroutines that are created to poll node metrics in parallel. (default `100`) --parse_metric_data bool When true, core files will be parsed and non-relevant data will be removed prior to upload. (default `false`) --https_client_timeout int Amount (in seconds) of time the https client has before timing out requests. (default `60`) --upload_region The region the metrics-agent will upload data to. (default `us-west-2`) Global Flags: --log_format string Format for log output (JSON,PLAIN) (default "PLAIN") --log_level string Log level to run the agent at (INFO,WARN,DEBUG) (default "INFO") ``` -------------------------------- ### Export API Key and Deploy Locally Source: https://github.com/cloudability/metrics-agent/blob/master/README.md Export your Cloudability API key as an environment variable and then run the local deployment command. Ensure you have a valid API key before proceeding. ```sh export CLOUDABILITY_API_KEY={your_api_key} make deploy-local ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.