mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
feat: histogram impact metric ingestion
This commit is contained in:
parent
4f1fdfe63b
commit
a4a23ac3c3
@ -31,10 +31,12 @@ export class BatchHistogram {
|
||||
name: string;
|
||||
help: string;
|
||||
registry: Registry;
|
||||
labelNames?: string[];
|
||||
}) {
|
||||
this.name = config.name;
|
||||
this.help = config.help;
|
||||
this.registry = config.registry;
|
||||
this.labelNames = config.labelNames || [];
|
||||
|
||||
this.registry.registerMetric(this as any);
|
||||
}
|
||||
|
@ -174,6 +174,7 @@ export class MetricsTranslator {
|
||||
name: prefixedName,
|
||||
help: metric.help,
|
||||
registry: this.registry,
|
||||
labelNames,
|
||||
});
|
||||
} else {
|
||||
histogram = existingMetric as BatchHistogram;
|
||||
@ -183,6 +184,7 @@ export class MetricsTranslator {
|
||||
name: prefixedName,
|
||||
help: metric.help,
|
||||
registry: this.registry,
|
||||
labelNames,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user