You can obtain Dgraph statistics by running the bdd-admin script with the get-stats command.
./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:
|
-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.
./bdd-admin.sh get-stats /tmp
./bdd-admin.sh get-stats -n web009.us.example.com /tmp