Adds a CLI command (and corresponding API) to fetch info about a raft node. The command provides a variety of information regarding the node's role, log state, peers, election state, and leader. It has two output modes, the default mode is to provide the data in JSON format, which is a direct copy from what the underlying API returns. The other mode (-H) prints the information in a slightly more tabular, human-readable format.
usage: profilecli admin raft info [<flags>]
Print info about a Raft node.
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--version Show application version.
-v, --verbose Enable verbose logging.
--url="http://localhost:4040"
URL of the profile store.
--tenant-id="" The tenant ID to be used for the X-Scope-OrgID header.
--username="" The username to be used for basic auth.
--password="" The password to be used for basic auth.
--protocol=connect The protocol to be used for communicating with the server.
-H, --human Human readable output
closes https://github.com/grafana/pyroscope-squad/issues/230
Adds a CLI command (and corresponding API) to fetch info about a raft node. The command provides a variety of information regarding the node's role, log state, peers, election state, and leader. It has two output modes, the default mode is to provide the data in JSON format, which is a direct copy from what the underlying API returns. The other mode (
-H
) prints the information in a slightly more tabular, human-readable format.Sample output:
Sample output with
-H
: