[#BloombergLP-balm-Metrics_Helper-getCollector]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Metrics_Helper.adoc[Metrics&lowbar;Helper]::getCollector
:relfileprefix: ../../../
:mrdocs:

Return the default metrics collector for the specified category and metric&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/balm/Collector.adoc[Collector]*
getCollector(
    char const* category,
    char const* metric);
----

== Description

Return the address of the default metrics collector for the metric identified by the specified `category` and `metric` names&period; The behavior is undefined unless the `balm` metrics manager singleton is valid&period;

== Return Value

address of the default metrics collector for the metric

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| null&hyphen;terminated category name
| *metric*
| null&hyphen;terminated metric name
|===


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