Skip to content

Commit 0f3686b

Browse files
committed
add RegisterOnDemandCollectors in ICollectorRegistry
1 parent 6685c9d commit 0f3686b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
bin
88
obj
99
packages
10+
.idea

src/Prometheus.Client/Collectors/ICollectorRegistry.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ public interface ICollectorRegistry
1010
bool Remove(ICollector collector);
1111

1212
IEnumerable<MetricFamily> CollectAll();
13+
14+
void RegisterOnDemandCollectors(IEnumerable<IOnDemandCollector> onDemandCollectors);
1315
}
1416
}

src/Prometheus.Client/Collectors/PerfCounterCollector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if !COREFX
1+
#if !NETSTANDART13
22

33
using System;
44
using System.Collections.Generic;

src/Prometheus.Client/Prometheus.Client.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Description>.NET client for prometheus.io.</Description>
55
<Copyright>2017 © Sergey Kuznetsov</Copyright>
66
<AssemblyTitle>Prometheus.Client</AssemblyTitle>
7-
<VersionPrefix>1.1.2</VersionPrefix>
7+
<VersionPrefix>1.2.0</VersionPrefix>
88
<Authors>Sergey Kuznetsov</Authors>
99
<TargetFrameworks>net45;netstandard1.3</TargetFrameworks>
1010
<AssemblyName>Prometheus.Client</AssemblyName>
@@ -23,7 +23,7 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="protobuf-net" Version="2.3.1" />
26+
<PackageReference Include="protobuf-net" Version="2.3.2" />
2727
</ItemGroup>
2828

2929
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
@@ -32,7 +32,7 @@
3232
</ItemGroup>
3333

3434
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
35-
<DefineConstants>$(DefineConstants);COREFX</DefineConstants>
35+
<DefineConstants>$(DefineConstants);NETSTANDART13</DefineConstants>
3636
</PropertyGroup>
3737

3838
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">

0 commit comments

Comments
 (0)