useMetric
Function: useMetric()
useMetric<
T>(type,configuration):T
Defined in: packages/core/src/metrics/metrics.ts:40
Get a metric object
Use the Service.getMetric method if possible
This is map from prometheus 3 types of metrics Our hope is that we can adapt them to export to other metrics system if needed
Type Parameters
T
T = Gauge<string> | Counter<string> | Histogram<string>
Parameters
type
CustomConstructor<T, [MetricConfiguration<T, string>]>
the type to look up
configuration
the configuration
Returns
T
the result