prometheus-net/prometheus-net
.NET library to instrument your code with Prometheus metrics observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4179
- days_rel: n/a
- days_push: 874
- n_releases_24m: 0
Adoption not part of the score
2094 stars · 318 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
prometheus-net is a .NET library for instrumenting application code with Prometheus metrics such as counters, gauges, histograms, and summaries. It includes built-in integrations for ASP.NET Core request metrics, gRPC, IHttpClientFactory, health checks, and Pushgateway publishing.
Use cases
- instrument a .NET application with Prometheus metrics
- expose a /metrics endpoint from ASP.NET Core
- track HTTP request duration and counts in ASP.NET Core
- collect gRPC request metrics in .NET
- push metrics to Prometheus Pushgateway
- count exceptions and track in-progress operations
- monitor HttpClient calls via IHttpClientFactory
When to choose
- you run .NET or .NET Framework services monitored by Prometheus
- you need custom application metrics with labels and histograms
- you want built-in ASP.NET Core and gRPC metric middleware
When to avoid
- your application is not on the .NET platform
- you need a full metrics storage and query engine rather than instrumentation (use the Prometheus server)
- you target runtimes older than .NET Framework 4.6.2 or .NET 6.0
Facets
library · maturity active
monitoring middleware monitoring backend developer-tools apis dotnet cross-platform prometheus instrumentation aspnetcore counters histograms gauges pushgateway grpc-metrics healthchecks httpclientfactory web-server
10 sources
- readme: https://github.com/prometheus-net/prometheus-net · fetched 2026-08-28 · c5581d5b93db
- homepage: https://prometheus.io · fetched 2026-08-29 · 90ad2d078025
- site_page: https://prometheus.io/docs/introduction/overview · fetched 2026-08-29 · 7768d893cf39
- site_page: https://prometheus.io/docs/prometheus/latest/getting_started · fetched 2026-08-29 · 1e2a0ce5ca59
- site_page: https://prometheus.io/docs/concepts/data_model · fetched 2026-08-29 · a377e9a58b18
- site_page: https://prometheus.io/docs/prometheus/latest/querying/basics · fetched 2026-08-29 · cab4a7880e82
- site_page: https://prometheus.io/docs/alerting/latest/overview · fetched 2026-08-29 · a05282aeaa43
- site_page: https://prometheus.io/docs/prometheus/latest/configuration/configuration · fetched 2026-08-29 · eef957bb70ac
- site_page: https://prometheus.io/docs/instrumenting/clientlibs · fetched 2026-08-29 · e814512fea70
- site_page: https://prometheus.io/docs/instrumenting/exporters · fetched 2026-08-29 · 16800ed839dd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| prometheus-net/prometheus-net | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="prometheus-net/prometheus-net")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem