get-stats

The get-stats command obtains Dgraph statistics.

Note: Statistics are intended for use by Oracle Support only.
To obtain the Dgraph statistics, run the following from the Admin Server:
./bdd-admin.sh get-stats [option <arg>] <dest>
Where <dest> is the absolute path to the directory the script will output the requested statistics to. When the script completes, this location will contain a file named <hostname>-<timestamp>-dgraph-stats.xml.

get-stats supports the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the components to run on:
  • dgraph: Dgraph
-n, --node <hostname(s)> A comma-separated list of the nodes to run on. Each must be defined in $BDD_HOME/BDD_manager/conf/bdd.conf.

If no options are specified, the script obtains the statistics for all Dgraph instances in the cluster.

For more information on Dgraph statistics, see Dgraph statistics.

Examples

The following command outputs the statistics of all Dgraph instances in the cluster to the /tmp directory:
./bdd-admin.sh get-stats /tmp
The following command outputs the statistics of the Dgraph running on the web009.us.example.com node to the /tmp directory:
./bdd-admin.sh get-stats -n web009.us.example.com /tmp