prometheus-net
.NET client library for the Prometheus monitoring and alerting system
8.2.1
321M downloads/mo
#174 most downloaded on NuGet
prometheus-net/prometheus-net
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 5 months
Rarely documented
notes for 8 of 52 stable releases
6 versions withdrawn
withdrawn after publishing
127 years old
186 releases · first in 1900
0 releases in the last 12 months
see the full history below
Release timeline
186 releases · Jan 1900 to Jan 2024Releases
latest 60 of 186-
8.2.103 Jan 2024Release notes
Open source →Fix occasional "Collection was modified" exception when serializing metrics. #464
-
8.2.1-pre-240103185829-60e910603 Jan 2024 pre-releaseNothing published for this version
-
8.2.005 Dec 2023Release notes
Open source →- .WithLabels() & similar now accept ReadOnlyMemory as alternative to string[]. Same behavior, just easier to use if you already have a ReadOnlyMemory.
- .WithLabels() & similar now accept ReadOnlySpan as alternative to string[]. This enables allocation-free metric instance creation if a metric instance with these labels is already known.
- Incorporated various optimizations to reduce the required CPU time and allocated memory, including #410, #443 and other contributions.
- Observation of large histograms is now 10-30% faster on machines that support AVX2 instructions.
- health checks exposed via ForwardToPrometheus() no longer create a default metric if a custom metric is provided #444
-
8.2.0-pre-231205215128-a2c1c8f05 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231205134623-36b475005 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231204222617-783725504 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231204170437-99f640f04 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231204094406-885f52c04 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231204084751-4d19b4204 Dec 2023 pre-releaseNothing published for this version
-
8.2.0-pre-231128134008-9a7dad228 Nov 2023 pre-releaseNothing published for this version
-
8.1.128 Nov 2023 -
8.1.1-pre-231128114341-17bb2a028 Nov 2023 pre-releaseNothing published for this version
-
8.1.029 Oct 2023Release notes
Open source →Add support for capturing HttpClient metrics from all registered HttpClients (
services.UseHttpClientMetrics()). -
8.1.0-pre-231028004937-71a866828 Oct 2023 pre-releaseNothing published for this version
-
8.0.118 Jul 2023Release notes
Open source →Allow ObservableCounter to be reset. Previously, the MeterAdapter output got stuck on its previous maximum if the underlying Meter reset its value to a lower value. Now we transform the value 1:1.
-
8.0.1-pre-230718073955-ea794f618 Jul 2023 pre-releaseNothing published for this version
-
8.0.1-pre-230718042806-718dffc18 Jul 2023 pre-releaseNothing published for this version
-
8.0.017 Feb 2023Release notes
Open source →- Added OpenMetrics exposition format support (#388).
- Added exemplar support for Counter and Histogram (#388).
- The ':' character is no longer allowed in metric or label names. For metric names, Prometheus standard practice is to use colon only in recording rules.
- Publish symbol packages and add Source Link support for easier debugging experience.
- Fix defect where metrics with different labels could overwrite each other in specific circumstances with multiple metric factories in use (#389).
- Ensure even harder that MetricPusher flushes the final state before stopping (#383 and #384)
- Simplify DotNetStats built-in collector code for ease of readability and more best practices (#365, #364)
- Slightly improve Counter performance under concurrent load.
- Reduce memory allocations performed during ASP.NET Core HTTP request tracking.
- By default, EventCounterAdapter will only listen to a small predefined set of general-purpose useful event sources, to minimize resource consumption in the default configuration. A custom event source filter must now be provided to enable listening for additional event sources.
- EventCounterAdapter will only refresh data every 10 seconds by default, to reduce amount of garbage generated in memory (.NET event counters are very noisy and create many temporary objects).
- Added
IManagedLifetimeMetricFactory.WithLabels()to enable simpler label enrichment in scenarios where lifetime-managed metric instances are used. - Added back .NET Standard 2.0 support as some customers had a hard dependency on .NET Standard 2.0 (despite not being a documented feature even earlier).
- Added (Observable)UpDownCounter support to MeterAdapter (.NET 7 specific feature).
-
8.0.0-pre-230212122408-a055f5b12 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230210074852-a7c127710 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230209100041-c35ac6409 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230209074620-4f8f59c09 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230203154858-4bf76fb03 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230203125716-181383903 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230203073826-06c2e2f03 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230201062733-ece274301 Feb 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230127154206-9ec9e9b27 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230127124604-8b7c7e127 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230127111923-d72115a27 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230127084218-90f431127 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230127075825-bfc104127 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230126143551-210a1ab26 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230119065217-312c2e919 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230116052305-1ed397b16 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230102092516-235126602 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230101195105-9f2388901 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-230101084444-630935f01 Jan 2023 pre-releaseNothing published for this version
-
8.0.0-pre-221231102537-13e7ac631 Dec 2022 pre-releaseNothing published for this version
-
8.0.0-pre-221231100152-fb39dcb31 Dec 2022 pre-releaseNothing published for this version
-
8.0.0-pre-000351-fb39dcb31 Dec 2022 pre-releaseNothing published for this version
-
8.0.0-pre-000347-e83cc8730 Dec 2022 pre-releaseNothing published for this version
-
8.0.0-pre-000346-e83cc8730 Dec 2022 pre-releaseNothing published for this version
-
8.0.0-pre-000342-4d6812e29 Dec 2022 pre-releaseNothing published for this version
-
7.1.0-pre-000318-0479f5315 Nov 2022 pre-releaseNothing published for this version
-
7.1.0-pre-000310-9c9e1e907 Nov 2022 pre-releaseNothing published for this version
-
7.1.0-pre-000307-f98071327 Oct 2022 pre-releaseNothing published for this version
-
7.0.026 Oct 2022Release notes
Open source →- .NET Core specific functionality now targeting .NET 6.0 or greater (all previous versions will be end of life by December 2022).
- Relaxed the API restriction that forbade you to create multiple metrics with the same name but different label names. While this is a Prometheus anti-pattern, it is a standard pattern in other metrics technologies and we will allow it in the name of interoperability.
- Added
IMetricFactory.WithLabels()to define static labels per-factory and reduce the effort needed by users when defining static labels in specific scopes. - Added automatic metric expiration feature, to remove timeseries when they are no longer used after a while. This improves interoperability with other metrics technologies such as .NET Meters.
- (Breaking change) Rewrite of the MeterAdapter functionality to bridge .NET 6 metrics to Prometheus. API remains equivalent, though options class changed. Output format (what metrics are published) is completely different. Now it translates metric names (instead of putting them in labels) and preserves tags (labels) provided via the .NET Meters API. Added sample project to demonstrate functionality. Ref #359
- (Breaking change) Dropped support for .NET Standard 2.0 - now will target specifically .NET 6.0 and .NET Framework 4.6.2. This was already documented before but there was "unofficial" support also for .NET Standard remaining. This is now removed.
- (Breaking change) EventCounterAdapter output format changed to translate counters to Prometheus metrics and to improve usability by publishing both counters and gauges from ambiguous event counters.
EventCounterAdapterandMeterAdapterare now enabled on startup by default.- Added some debug metrics to indicate the number of metric families, instances and timeseries being exported by prometheus-net.
- Added typical benchmark results to readme for easy reference, and to show relative speed of the simple versus complex instruments.
- (Breaking change) Removed
MetricConfiguration.StaticLabelsbecause it had negative performance impact on many code paths that did not use it. The same functionality can be manually implemented in user code. Static labels remain available on registry and factory level. - When a before-collection metrics update callback throws an exception, it is now logged and ignored instead of breaking all metrics collection.
- EventCounterAdapter now defaults to Informational events only, for reduced performance overhead. Can be configured via callback.
-
7.0.0-pre-000305-75cc81717 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000304-cbb305a17 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000303-5a44ada16 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000301-06c593213 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000298-4b8d3e713 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000297-7068d2813 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000296-5b1a1c405 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000294-486fcd805 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000293-d13fe0604 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000292-88fbe2a04 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000288-4688bd302 Oct 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000282-d90ebf328 Sep 2022 pre-releaseNothing published for this version
-
7.0.0-pre-000280-ce6d49428 Sep 2022 pre-releaseNothing published for this version