Consul::API::Status - System status API
use Consul; my $status = Consul->status; my $peers = $status->peers; say "@$peers";
The system status API is used to get information about the status of the Consul cluster.
This API is fully documented at https://www.consul.io/docs/agent/http/status.html.
Returns the address of the Raft leader for the datacenter in which the agent is running. Returns an IP:port string.
Retrieves the Raft peers for the datacenter in which the agent is running. Returns an arrayref of IP:port strings.