[#BloombergLP-balm-CollectorRepository-getDefaultCollector-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::getDefaultCollector
:relfileprefix: ../../../
:mrdocs:

Return the address of the modifiable default collector identified by the specified `metricId`&period; If a default collector for the identified metric does not already exist in the repository, create one, add it to the repository, and return its address&period;

== Synopsis

Declared in `&lt;balm&lowbar;collectorrepository&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/Collector.adoc[Collector]*
getDefaultCollector(xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
