Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Dec 13, 2024
1 parent 404bfbb commit 61770d5
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions README.md
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).

0 comments on commit 61770d5

Please sign in to comment.