get-stats

You can obtain Dgraph statistics by running the bdd-admin script with the get-stats command.

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>

You can specify the following options.

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

If you don't specify any options, the script will obtain the statistics for all supported components.

You must provide the <dest> argument. This defines the absolute path to the directory the script will output the requested statistics to. When the script completes, this directory will contain a file named <hostname>-<timestamp>-dgraph-stats.xml.

For more information on Dgraph statistics, see About 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