github.com/argoproj/argo-cd/v2@v2.10.5/docs/user-guide/commands/argocd_admin_cluster_stats.md (about) 1 # `argocd admin cluster stats` Command Reference 2 3 ## argocd admin cluster stats 4 5 Prints information cluster statistics and inferred shard number 6 7 ``` 8 argocd admin cluster stats [flags] 9 ``` 10 11 ### Examples 12 13 ``` 14 15 #Display stats and shards for clusters 16 argocd admin cluster stats 17 18 #Display Cluster Statistics for a Specific Shard 19 argocd admin cluster stats --shard=1 20 21 #In a multi-cluster environment to print stats for a specific cluster say(target-cluster) 22 argocd admin cluster stats target-cluster 23 ``` 24 25 ### Options 26 27 ``` 28 --app-state-cache-expiration duration Cache expiration for app state (default 1h0m0s) 29 --as string Username to impersonate for the operation 30 --as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. 31 --as-uid string UID to impersonate for the operation 32 --certificate-authority string Path to a cert file for the certificate authority 33 --client-certificate string Path to a client certificate file for TLS 34 --client-key string Path to a client key file for TLS 35 --cluster string The name of the kubeconfig cluster to use 36 --context string The name of the kubeconfig context to use 37 --default-cache-expiration duration Cache expiration default (default 24h0m0s) 38 --disable-compression If true, opt-out of response compression for all requests to the server 39 -h, --help help for stats 40 --insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure 41 --kubeconfig string Path to a kube config. Only required if out-of-cluster 42 -n, --namespace string If present, the namespace scope for this CLI request 43 --password string Password for basic authentication to the API server 44 --port-forward-redis Automatically port-forward ha proxy redis from current namespace? (default true) 45 --proxy-url string If provided, this URL will be used to connect via proxy 46 --redis string Redis server hostname and port (e.g. argocd-redis:6379). 47 --redis-ca-certificate string Path to Redis server CA certificate (e.g. /etc/certs/redis/ca.crt). If not specified, system trusted CAs will be used for server certificate validation. 48 --redis-client-certificate string Path to Redis client certificate (e.g. /etc/certs/redis/client.crt). 49 --redis-client-key string Path to Redis client key (e.g. /etc/certs/redis/client.crt). 50 --redis-compress string Enable compression for data sent to Redis with the required compression algorithm. (possible values: gzip, none) (default "gzip") 51 --redis-insecure-skip-tls-verify Skip Redis server certificate validation. 52 --redis-use-tls Use TLS when connecting to Redis. 53 --redisdb int Redis database. 54 --replicas int Application controller replicas count. Inferred from number of running controller pods if not specified 55 --request-timeout string The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0") 56 --sentinel stringArray Redis sentinel hostname and port (e.g. argocd-redis-ha-announce-0:6379). 57 --sentinelmaster string Redis sentinel master group name. (default "master") 58 --server string The address and port of the Kubernetes API server 59 --shard int Cluster shard filter (default -1) 60 --sharding-method string Sharding method. Defaults: legacy. Supported sharding methods are : [legacy, round-robin] (default "legacy") 61 --tls-server-name string If provided, this name will be used to validate server certificate. If this is not provided, hostname used to contact the server is used. 62 --token string Bearer token for authentication to the API server 63 --user string The name of the kubeconfig user to use 64 --username string Username for basic authentication to the API server 65 ``` 66 67 ### Options inherited from parent commands 68 69 ``` 70 --auth-token string Authentication token 71 --client-crt string Client certificate file 72 --client-crt-key string Client certificate key file 73 --config string Path to Argo CD config (default "/home/user/.config/argocd/config") 74 --controller-name string Name of the Argo CD Application controller; set this or the ARGOCD_APPLICATION_CONTROLLER_NAME environment variable when the controller's name label differs from the default, for example when installing via the Helm chart (default "argocd-application-controller") 75 --core If set to true then CLI talks directly to Kubernetes instead of talking to Argo CD API server 76 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 77 --grpc-web-root-path string Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root. 78 -H, --header strings Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers) 79 --http-retry-max int Maximum number of retries to establish http connection to Argo CD server 80 --insecure Skip server certificate and domain verification 81 --kube-context string Directs the command to the given kube-context 82 --logformat string Set the logging format. One of: text|json (default "text") 83 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 84 --plaintext Disable TLS 85 --port-forward Connect to a random argocd-server port using port forwarding 86 --port-forward-namespace string Namespace name which should be used for port forwarding 87 --redis-haproxy-name string Name of the Redis HA Proxy; set this or the ARGOCD_REDIS_HAPROXY_NAME environment variable when the HA Proxy's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis-ha-haproxy") 88 --redis-name string Name of the Redis deployment; set this or the ARGOCD_REDIS_NAME environment variable when the Redis's name label differs from the default, for example when installing via the Helm chart (default "argocd-redis") 89 --repo-server-name string Name of the Argo CD Repo server; set this or the ARGOCD_REPO_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-repo-server") 90 --server-crt string Server certificate file 91 --server-name string Name of the Argo CD API server; set this or the ARGOCD_SERVER_NAME environment variable when the server's name label differs from the default, for example when installing via the Helm chart (default "argocd-server") 92 ``` 93 94 ### SEE ALSO 95 96 * [argocd admin cluster](argocd_admin_cluster.md) - Manage clusters configuration 97