datastoremetrics
This ArcGIS Data Store utility is used with the relational store.
Use the datastoremetrics utility to disable or enable the exposure of metrics about the state of the relational store machine. See Information exposed by the metrics API for more information about the specific metrics that are available.
To gather information about the primary and standby machine, you must enable metrics on both.
You must configure these metrics to make use of them. See Configure access to metrics for instructions.
Syntax
datastoremetrics --enabled <true | false> [--interval <hours>]
Specify true with the enabled operation to collect metrics for the relational store machine.
Metrics are cleared at the interval (in hours) that you specify. Intervals must be provided as positive integers, with 1 as the minimum value. If you do not define an interval, metrics are purged every 1 hour. Ensure that the clearing interval is greater than the scrape interval you configure for the third-party server that collects the metrics.
To stop collecting metrics, specify false with the enabled operation.
Example
In this example, metrics will be cleared every 2 hours for the data store machine where the utility is run.
./datastoremetrics --enabled true --interval 2
datastoremetrics --enabled true --interval 2