-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
With the change to use DI for injecting the ICollectorRegistry the CollectorRegistryInstance
property of PrometheusOptions
becomes useless. We used to configure our metrics like this.
app.UsePrometheusServer(prometheusOptions =>
{
prometheusOptions.CollectorRegistryInstance.Add(new MySystemMetricCollector());
});
This no longer works. The property is null. If I create a new CollectorRegistry in this method it is ignored. So I would suggest you set it before invoking the setup function.
Metadata
Metadata
Assignees
Labels
No labels