Skip to content

Commit

Permalink
feat: update prom-client to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Aug 28, 2022
1 parent bf986f5 commit ced97c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Prometheus.Client.HealthChecks.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>HealthChecks middleware for the Prometheus.Client</Description>
<VersionPrefix>0.5.0</VersionPrefix>
<VersionPrefix>1.0.0</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<PackageId>Prometheus.Client.HealthChecks</PackageId>
<PackageTags>prometheus;metrics</PackageTags>
Expand All @@ -22,7 +22,7 @@
<None Include="..\icon.png" Visible="false" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Prometheus.Client" Version="[4.4.0,5.0.0)" />
<PackageReference Include="Prometheus.Client" Version="[5.0.0,6.0.0)" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="3.1.28" />
Expand Down
4 changes: 2 additions & 2 deletions src/PrometheusHealthCheckPublisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

/// <inheritdoc />
Expand Down

0 comments on commit ced97c8

Please sign in to comment.