Skip to content

Commit 2df0745

Browse files
committed
README.md & appveyor.yml
1 parent 2b05659 commit 2df0745

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Prometheus.Client.AspNetCore
22

33
[![NuGet Badge](https://buildstats.info/nuget/Prometheus.Client.AspNetCore)](https://www.nuget.org/packages/Prometheus.Client.AspNetCore/)
4-
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/d5pdqedoxogmiun4/branch/master?svg=true)](https://ci.appveyor.com/project/PrometheusClientNet/prometheus-client-aspnetcore/branch/master)
5+
[![License MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
6+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/73abdf76e71f42dfb6887a15eafb250a)](https://www.codacy.com/app/phnx47/Prometheus.Client.AspNetCore?utm_source=github.com&utm_medium=referral&utm_content=PrometheusClientNet/Prometheus.Client.AspNetCore&utm_campaign=Badge_Grade)
57

68

79
Extension for [Prometheus.Client](https://github.com/PrometheusClientNet/Prometheus.Client)
@@ -13,6 +15,8 @@ Extension for [Prometheus.Client](https://github.com/PrometheusClientNet/Prometh
1315

1416
#### Quik start:
1517

18+
There are [Examples](https://github.com/PrometheusClientNet/Prometheus.Client.Examples/tree/master/Middleware/WebAspNetCore_2.0)
19+
1620
```csharp
1721

1822
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime)
@@ -21,3 +25,17 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
2125
}
2226

2327
```
28+
29+
```csharp
30+
31+
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime)
32+
{
33+
app.UsePrometheusServer(q =>
34+
{
35+
q.MapPath = "/metrics1";
36+
});
37+
}
38+
39+
```
40+
41+

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ artifacts:
88
deploy:
99
- provider: NuGet
1010
api_key:
11-
secure: vukCl5k+S4fJtqeYNiB9ufy/NUCw+60cPcqnPoqvykBjSo8Ub8QtEfZNN9qvj5Jh
11+
secure: nts+1V9NzzFZbyAVeJs951l/7K01aEfLTEGGyb8t2zNMcZhBnlSTGPoQV8IRpsMa
1212
on:
1313
appveyor_repo_tag: true

0 commit comments

Comments
 (0)