diff --git a/src/Prometheus.Client.HealthChecks.csproj b/src/Prometheus.Client.HealthChecks.csproj index d19a3cf..6c333e4 100644 --- a/src/Prometheus.Client.HealthChecks.csproj +++ b/src/Prometheus.Client.HealthChecks.csproj @@ -1,7 +1,7 @@ HealthChecks middleware for the Prometheus.Client - 0.5.0 + 1.0.0 netstandard2.0;netstandard2.1;net5.0 Prometheus.Client.HealthChecks prometheus;metrics @@ -22,7 +22,7 @@ - + diff --git a/src/PrometheusHealthCheckPublisher.cs b/src/PrometheusHealthCheckPublisher.cs index c67500e..6eefd48 100644 --- a/src/PrometheusHealthCheckPublisher.cs +++ b/src/PrometheusHealthCheckPublisher.cs @@ -22,9 +22,9 @@ public PrometheusHealthCheckPublisher(PrometheusHealthCheckPublisherOptions opti var metricFactory = new MetricFactory(options.CollectorRegistry); _status = metricFactory.CreateGauge(options.StatusMetricName, - "Shows raw health check status (0 = Unhealthy, 1 = Degraded, 2 = Healthy)", "name"); + "Shows raw health check status (0 = Unhealthy, 1 = Degraded, 2 = Healthy)", ValueTuple.Create("name")); _duration = metricFactory.CreateGauge(options.DurationMetricName, - "Shows duration of the health check execution in seconds", "name"); + "Shows duration of the health check execution in seconds", ValueTuple.Create("name")); } ///