forked from AppMetrics/AppMetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppMetrics#590 adding collectors to capture system usage and gc events
- Loading branch information
Showing
35 changed files
with
638 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Extensions/sandbox/CollectorsSandbox/CollectorsSandbox.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="..\..\build\common.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<IsPackable>false</IsPackable> | ||
<LangVersion>Latest</LangVersion> | ||
<OutputType>exe</OutputType> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" /> | ||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.5" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\App.Metrics.AppNetCore\App.Metrics.AppNetCore.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// <copyright file="Host.cs" company="App Metrics Contributors"> | ||
// Copyright (c) App Metrics Contributors. All rights reserved. | ||
// </copyright> | ||
|
||
using System; | ||
using System.Threading.Tasks; | ||
using MetricsMicrosoftExtensionsSandbox; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
|
||
namespace CollectorsSandbox | ||
{ | ||
public class Host | ||
{ | ||
public static async Task Main() | ||
{ | ||
var host = new HostBuilder() | ||
.ConfigureMetrics( | ||
(context, builder) => | ||
{ | ||
builder.Report.Using<SimpleConsoleMetricsReporter>(TimeSpan.FromSeconds(5)); | ||
}) | ||
.ConfigureServices(services => | ||
{ | ||
services.AddAppMetricsCollectors(options => | ||
{ | ||
options.CollectIntervalMilliseconds = 10000; | ||
}); | ||
}) | ||
.Build(); | ||
|
||
await host.RunAsync(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
53 changes: 0 additions & 53 deletions
53
src/Extensions/sandbox/HealthHostingMicrosoftExtensionsSandbox/Extensions/HostExtensions.cs
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
...ox/HealthHostingMicrosoftExtensionsSandbox/HealthHostingMicrosoftExtensionsSandbox.csproj
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
src/Extensions/sandbox/HealthHostingMicrosoftExtensionsSandbox/Host.cs
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/Extensions/sandbox/HealthHostingMicrosoftExtensionsSandbox/SampleHealthCheck.cs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/Extensions/sandbox/HealthHostingMicrosoftExtensionsSandbox/appsettings.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.