-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,47 @@ | ||
# Prometheus.Client.Owin | ||
|
||
[![NuGet](https://img.shields.io/nuget/v/Prometheus.Client.Owin.svg)](https://www.nuget.org/packages/Prometheus.Client.Owin) | ||
[![NuGet](https://img.shields.io/nuget/dt/Prometheus.Client.Owin.svg)](https://www.nuget.org/packages/Prometheus.Client.Owin) | ||
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT) | ||
[![ci](https://img.shields.io/github/actions/workflow/status/prom-client-net/prom-client-owin/ci.yml?branch=main&label=ci&logo=github&style=flat-square)](https://github.com/prom-client-net/prom-client-owin/actions/workflows/ci.yml) | ||
[![nuget](https://img.shields.io/nuget/v/Prometheus.Client.Owin?logo=nuget&style=flat-square)](https://www.nuget.org/packages/Prometheus.Client.Owin) | ||
[![nuget](https://img.shields.io/nuget/dt/Prometheus.Client.Owin?logo=nuget&style=flat-square)](https://www.nuget.org/packages/Prometheus.Client.Owin) | ||
[![license](https://img.shields.io/github/license/prom-client-net/prom-client-owin?style=flat-square)](https://github.com/prom-client-net/prom-client-owin/blob/main/LICENSE) | ||
<!-- [![codecov](https://img.shields.io/codecov/c/github/prom-client-net/prom-client-owin?logo=codecov&style=flat-square)](https://app.codecov.io/gh/prom-client-net/prom-client-owin) --> | ||
|
||
Extension for [Prometheus.Client](https://github.com/PrometheusClientNet/Prometheus.Client) | ||
|
||
#### Installation: | ||
## Installation | ||
|
||
dotnet add package Prometheus.Client.Owin | ||
|
||
#### Use | ||
```sh | ||
dotnet add package Prometheus.Client.Owin | ||
``` | ||
|
||
There are [Examples](https://github.com/PrometheusClientNet/Prometheus.Client.Examples/tree/net45-support/Middleware/WebOwin_4.5) | ||
## Use | ||
|
||
```csharp | ||
[Examples](https://github.com/prom-client-net/prom-examples) | ||
|
||
```c# | ||
public void Configuration(IAppBuilder app) | ||
{ | ||
app.UsePrometheusServer(); | ||
{ | ||
app.UsePrometheusServer(); | ||
} | ||
``` | ||
or | ||
```csharp | ||
|
||
```c# | ||
public void Configuration(IAppBuilder app) | ||
{ | ||
{ | ||
app.UsePrometheusServer(q => | ||
{ | ||
q.MapPath = "/api/metrics"; | ||
}); | ||
} | ||
``` | ||
``` | ||
|
||
## Contribute | ||
|
||
Contributions to the package are always welcome! | ||
|
||
* Report any bugs or issues you find on the [issue tracker](https://github.com/prom-client-net/prom-client-owin/issues). | ||
* You can grab the source code at the package's [git repository](https://github.com/prom-client-net/prom-client-owin). | ||
|
||
## License | ||
|
||
All contents of this package are licensed under the [MIT license](https://opensource.org/licenses/MIT). |