Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.8 KB

README.md

File metadata and controls

60 lines (47 loc) · 1.8 KB

Logo

Elect.AppMetrics

Author Top Nguyen

Overview

  • Support enable and config to the AppMetrics Service automatically.

Installation

Install InfluxDB or Prometheus (Optional)

Elect AppMetrics Nuget

  • Package Manager

    PM> Install-Package Elect.AppMetrics
    
  • .NET CLI

    dotnet add package Elect.AppMetrics
    

See more information in Nuget.

Usage

  • In Program.cs add AppMetrics
    // By appsettings.json
    // Assumption in the appsettings.json the section config for `ElectAppMetricsOptions` named 'ElectAppMetrics'
    webHostBuilder.UseElectAppMetrics("ElectAppMetrics");
    
    // Or by Object
    
    webHostBuilder.UseElectAppMetrics({object ElectAppMetricsOptions});
    
    // Or by Lambda
    webHostBuilder.UseElectAppMetrics(_ => {
        // Setting properties
    });

License

Elect.AppMetrics is licensed under the MIT License.