Initializes a new MapPolicy from the provided policy values.
Optionalprops: MetricsPolicyOptionsMapPolicy values
OptionalintervalNumber of cluster tend iterations between metrics notification events. One tend iteration is defined as Config.tenderInterval (default 1 second) plus the time to tend all nodes.
OptionallabelsObject containing name/value labels applied when exporting metrics.
OptionallatencyNumber of elapsed time range buckets in latency histograms.
OptionallatencyPower of 2 multiple between each range bucket in latency histograms starting at column 3. The bucket units are in milliseconds. The first 2 buckets are “<=1ms” and “>1ms”.
OptionalMetricsListeners that handles metrics notification events. If set to None, the default listener implementation will be used, which writes the metrics snapshot to a file which can later be read and forwarded to OpenTelemetry by a separate offline application. Otherwise, use all listeners set in the class instance. The listener could be overridden to send the metrics snapshot directly to OpenTelemetry.
OptionalreportDirectory path to write metrics log files for listeners that write logs. Maximum path size is 256 characters.
OptionalreportMetrics file size soft limit in bytes for listeners that write logs. When reportSizeLimit is reached or exceeded, the current metrics file is closed and a new metrics file is created with a new timestamp. If reportSizeLimit is zero, the metrics file size is unbounded and the file will only be closed when disableMetrics() or close() is called.
A policy affecting the behavior of map operations.
Since
v3.0.0