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;
|
name: string;
|
||||||
help: string;
|
help: string;
|
||||||
registry: Registry;
|
registry: Registry;
|
||||||
|
labelNames?: string[];
|
||||||
}) {
|
}) {
|
||||||
this.name = config.name;
|
this.name = config.name;
|
||||||
this.help = config.help;
|
this.help = config.help;
|
||||||
this.registry = config.registry;
|
this.registry = config.registry;
|
||||||
|
this.labelNames = config.labelNames || [];
|
||||||
|
|
||||||
this.registry.registerMetric(this as any);
|
this.registry.registerMetric(this as any);
|
||||||
}
|
}
|
||||||
|
@ -174,6 +174,7 @@ export class MetricsTranslator {
|
|||||||
name: prefixedName,
|
name: prefixedName,
|
||||||
help: metric.help,
|
help: metric.help,
|
||||||
registry: this.registry,
|
registry: this.registry,
|
||||||
|
labelNames,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
histogram = existingMetric as BatchHistogram;
|
histogram = existingMetric as BatchHistogram;
|
||||||
@ -183,6 +184,7 @@ export class MetricsTranslator {
|
|||||||
name: prefixedName,
|
name: prefixedName,
|
||||||
help: metric.help,
|
help: metric.help,
|
||||||
registry: this.registry,
|
registry: this.registry,
|
||||||
|
labelNames,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user