You can reset Dgraph statistics by running the bdd-admin script with the reset-stats command.
./bdd-admin.sh reset-stats [option <arg>]
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 reset the statistics for all Dgraph instances in the cluster.
For more information on Dgraph statistics, see About Dgraph statistics.
./bdd-admin.sh reset-stats
./bdd-admin.sh reset-stats -n web009.us.example.com