Skip to content

Commit

Permalink
feat: add prefixName to extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Jul 10, 2021
1 parent 3c39a83 commit 675ae9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Prometheus.Client/Collectors/DefaultCollectors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ namespace Prometheus.Client.Collectors
{
public static class DefaultCollectors
{
public static ICollectorRegistry UseDefaultCollectors(this ICollectorRegistry registry)
public static ICollectorRegistry UseDefaultCollectors(this ICollectorRegistry registry, string prefixName = "")
{
registry.UseDotNetStats();
registry.UseProcessStats();
registry.UseDotNetStats(prefixName);
registry.UseProcessStats(prefixName);

return registry;
}
Expand Down

0 comments on commit 675ae9a

Please sign in to comment.