Identitying cluster controller node in foundationdb

As per the fdb documentation, one coordinator choosed as a leader and that acts as a cluster controller. How to identity which node acts as a cluster controller in foundationdb cluster?

There are two ways to get the current cluster controller:

1.) fetching the machine-readable status (fdbcli --exec ‘status json’) and look for the process with the role "cluster_controller".
2.) Use the trace events and search for events that contain Roles="CC".