Constructors
constructor
- new Aggregator(
logger: LoggerInstance,
port?: AggregatorRegistry<"text/plain; version=0.0.4; charset=utf-8">,
): Aggregator Parameters
- logger: LoggerInstance
Optional
port: AggregatorRegistry<"text/plain; version=0.0.4; charset=utf-8">
Accessors
registry
- get registry(): Registry<"text/plain; version=0.0.4; charset=utf-8">
Returns Registry<"text/plain; version=0.0.4; charset=utf-8">
Methods
clear
- clear(): void
Returns void
getMetric
- getMetric(name: string): undefined | Metric
Returns undefined | Metric
getMetricAsJSON
- getMetricAsJSON(
name: string,
): Promise<undefined | MetricObjectWithValues<MetricValue<string>>> Returns Promise<undefined | MetricObjectWithValues<MetricValue<string>>>
getMetricAsString
- getMetricAsString(name: string): Promise<string>
Returns Promise<string>
MetricsAggregator class manages all the metrics for this artifact, integrating with Prometheus for metrics collection and aggregation.