You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are hosting your app inside IIS or any OWIN compatible server, OWIN Adapter is a much better option.
Default Endpoints
By default, Metrics.NET will serve the visualization app and json & text reports along with a health status report.
JSON metrics are available at /v2/json (latest version with context support) or /v1/json (initial version, without any context support). /json will provide /v1/json or /v2/json depending on the accepted mime types defined in the accept header of the request. Human readable text metrics are available at /text. The health status is accessible at /health or /v1/health.
A simple way to build a new reporter is to provide an extension method for MetricsEndpointReports, which internally calls MetricsEndpointReports.WithEndpointReport. Then you can simply configure as follows, without needing to build the response factory inside the configuration block:
Metric.Config.WithHttpEndpoint("https://localhost:1234/", config =>config.WithMyCustomEndpointReport("sample"/* any other parameters */));