Exporting metering data
12 October 2022 02:09 PM
|
||||
SummaryHere we discuss various methods for sharing metering data with Support: telemetry in MarkLogic 9 and exporting monitoring data. DiscussionTelemetryIn MarkLogic 9, enabling telemetry collects, encrypts, packages, and sends diagnostic and system-level usage information about MarkLogic clusters, including metering, with minimal impact to performance. Telemetry sends information about your MarkLogic Servers to a protected and secure location where it can be accessed by the MarkLogic Technical Support Team to facilitate troubleshooting and monitor performance. For more information see Telemetry. Meters databaseIf telemetry is not enabled, make sure that monitoring history is enabled and data has been collected covering the time of the incident. See Enabling Monitoring History on a Group for more details. Exporting dataOne of the attached scripts can be used in lieu of a Meters database backup. They will provide the raw metering XML files from a defined period of time and can be reloaded into MarkLogic and used with the standard tools. exportMeters.xqyThis XQuery export script needs to be executed in Query Console against the Meters database and will generate zip files stored in the defined folder for the defined period of time. Variables for start and end times, batch size, and output directory are set at the top of the script. get-raw.shThis bash version will use MLCP to perform a similar export but requires an XDBC server and MLCP installed. By default the script creates output in a subdirectory called
Backup of Meters databaseA backup of the full Meters database will provide all the available raw data and is very useful, but is often very large and difficult to transfer, so an export of a defined time range is often requested. | ||||
|