Consul Operator Usage
Command: consul operator usage
The Usage operator
command provides cluster-level tools for Consul operators
to view usage information, such as service and service instance counts.
instances
Corresponding HTTP API Endpoint: [GET] /v1/operator/usage
This command retrieves usage information about the number of services registered in a given datacenter. By default, the datacenter of the local agent is queried.
The table below shows this command's required ACLs. Configuration of blocking queries and agent caching are not supported from commands, but may be from the corresponding HTTP endpoint.
ACL Required |
---|
operator:read |
Usage: consul operator usage instances
The output looks like this:
With the -all-datacenters
flag:
Command Options
-all-datacenters
- Display service counts from all known datacenters. Default isfalse
.-billable
- Display only billable service information. Default isfalse
.-connect
- Display only Consul service mesh component information. Default isfalse
.