Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days 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 (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T01:26:11.000Z (8 months ago)
- Last Synced: 2024-04-13T18:32:41.540Z (8 months 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
[![ci](https://img.shields.io/github/actions/workflow/status/prom-client-net/prom-client-aspnetcore/ci.yml?branch=main&label=ci&logo=github&style=flat-square)](https://github.com/prom-client-net/prom-client-aspnetcore/actions/workflows/ci.yml)
[![nuget](https://img.shields.io/nuget/v/Prometheus.Client.AspNetCore?logo=nuget&style=flat-square)](https://www.nuget.org/packages/Prometheus.Client.AspNetCore)
[![nuget](https://img.shields.io/nuget/dt/Prometheus.Client.AspNetCore?logo=nuget&style=flat-square)](https://www.nuget.org/packages/Prometheus.Client.AspNetCore)
[![codecov](https://img.shields.io/codecov/c/github/prom-client-net/prom-client-aspnetcore?logo=codecov&style=flat-square)](https://app.codecov.io/gh/prom-client-net/prom-client-aspnetcore)
[![codefactor](https://img.shields.io/codefactor/grade/github/prom-client-net/prom-client-aspnetcore?logo=codefactor&style=flat-square)](https://www.codefactor.io/repository/github/prom-client-net/prom-client-aspnetcore)
[![license](https://img.shields.io/github/license/prom-client-net/prom-client-aspnetcore?style=flat-square)](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).