[#BloombergLP-balm-MetricsManager-publishAll-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::publishAll :relfileprefix: ../../../ :mrdocs: Publish metrics for every category registered with the contained `MetricsRegistry` object. Optionally specify a `resetFlag` that determines if the metrics are reset as part of this operation. This operation will collect aggregated metric values for each enabled category in its `metricRegistry()` from registered callbacks as well as from its own `CollectorRepository`, and then publish those records using any publishers associated with the category. Any category that is not enabled is ignored. If `resetFlag` is `true`, the metrics being collected are reset to their default state. The metrics manager provides publishers the time interval over which a published category of metrics were collected. This interval is computed as the elapsed time since the last time the category was reset (either through a call to the `publish` or `collectSample` methods). If a category has not previously been reset then this interval is taken to be the elapsed time since the creation of this metrics manager. == Synopsis Declared in `<balm_metricsmanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void publishAll(bool resetFlag = true); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#