[#BloombergLP-balm-IntegerMetric-lookupCollector-03b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/IntegerMetric.adoc[IntegerMetric]::lookupCollector
:relfileprefix: ../../../
:mrdocs:

Return an integer collector for the specified `metricId`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/balm/IntegerCollector.adoc[IntegerCollector]*
lookupCollector(
    xref:BloombergLP/balm/MetricId.adoc[MetricId] const& metricId,
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0);
----

== Description

Optionally specify a metrics `manager` used to provide the collector&period; If `manager` is 0, use the default metrics manager, if initialized&semi; if `manager` is 0 and the default metrics manager has not been initialized, return 0&period; The behavior is undefined unless `metricId` is a valid metric id supplied by the `MetricsRegistry` of the indicated metrics manager&period;

== Return Value

integer collector for `metricId`, or 0 if none is available

== Parameters

[cols="1,4"]
|===
| Name| Description
| *metricId*
| identity of the metric to look up
| *manager*
| metrics manager used to provide the collector (0 for default)
|===


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