https://github.com/PrometheusClientNet/Prometheus.Client.AspNetCore
ASP.NET Core middleware for the Prometheus.Client
https://github.com/PrometheusClientNet/Prometheus.Client.AspNetCore
metrics prometheus prometheus-client
Last synced: 5 months ago
JSON representation
ASP.NET Core middleware for the Prometheus.Client
- Host: GitHub
- URL: https://github.com/PrometheusClientNet/Prometheus.Client.AspNetCore
- Owner: prom-client-net
- License: mit
- Created: 2018-04-22T23:10:35.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T01:26:11.000Z (about 1 year ago)
- Last Synced: 2024-04-13T18:32:41.540Z (about 1 year ago)
- Topics: metrics, prometheus, prometheus-client
- Language: C#
- Homepage:
- Size: 219 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- fucking-awesome-dotnet-core - Prometheus.Client.AspNetCore - Middleware for the Prometheus.Client. (Frameworks, Libraries and Tools / Code Analysis and Metrics)
- awesome-dotnet-core - Prometheus.Client.AspNetCore - Middleware for the Prometheus.Client. (Frameworks, Libraries and Tools / Code Analysis and Metrics)
- awesome-dotnet-core - Prometheus.Client.AspNetCore - Middleware for the Prometheus.Client. (Frameworks, Libraries and Tools / Code Analysis and Metrics)
README
# Prometheus.Client.AspNetCore
[](https://github.com/prom-client-net/prom-client-aspnetcore/actions/workflows/ci.yml)
[](https://www.nuget.org/packages/Prometheus.Client.AspNetCore)
[](https://www.nuget.org/packages/Prometheus.Client.AspNetCore)
[](https://app.codecov.io/gh/prom-client-net/prom-client-aspnetcore)
[](https://www.codefactor.io/repository/github/prom-client-net/prom-client-aspnetcore)
[](https://github.com/prom-client-net/prom-client-aspnetcore/blob/main/LICENSE)Extension for [Prometheus.Client](https://github.com/prom-client-net/prom-client)
## Installation
```sh
dotnet add package Prometheus.Client.AspNetCore
```## Use
[Examples](https://github.com/prom-client-net/prom-examples)
```c#
public void Configure(IApplicationBuilder app)
{
app.UsePrometheusServer();
}
``````c#
public void Configure(IApplicationBuilder app)
{
app.UsePrometheusServer(q =>
{
q.MapPath = "/prom";
q.MetricPrefixName = "my_app_";
});
}
```## 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-aspnetcore/issues).
* You can grab the source code at the package's [git repository](https://github.com/prom-client-net/prom-client-aspnetcore).## License
All contents of this package are licensed under the [MIT license](https://opensource.org/licenses/MIT).