prometheus-net

.NET library to instrument your code with Prometheus metrics

MIT License

Stars
1.9K
Committers
61

Bot releases are hidden (Show)

prometheus-net - 3.1.3 - Fix "MetricPusher not flushing before stop" regression

Published by sandersaares over 5 years ago

Fix regression introduced in 3.1.0 where MetricPusher does not always flush metrics before stopping.

prometheus-net - Bugfix release (Histogram batch observations)

Published by sandersaares over 5 years ago

Fix defect where Histogram batch observations only incremented sum by one value, instead of entire batch. #147

prometheus-net - Declare charset in HTTP response

Published by sandersaares over 5 years ago

  • Added missing UTF-8 charset to Content-Type header, so non-ASCII characters are interpreted correctly by browsers.
prometheus-net - ASP.NET Core 3.0 compatibility and other improvements

Published by sandersaares over 5 years ago

  • Added ICounter.NewTimer() (adds the value to the counter)
  • Eliminated some needless allocations when trying to register a metric that is already registered. #134
  • Added IHistogram.Count and IHistogram.Sum to expose aspects of collected data for inspection.
  • Added Collector.GetAllLabelValues() to expose the list of child metrics by all their known label values.
  • Metric export is now asynchronous internally to be compatible with ASP.NET Core 3.0 default configuration.
  • Added CollectorRegistry.CollectAndExportAsTextAsync() to support metric data export via arbitrary custom endpoints.
prometheus-net - ASP.NET Core 2.1 compatibility

Published by sandersaares over 5 years ago

This release increases backward compatibility to cover ASP.NET Core 2.1 (was previously 2.2+).

prometheus-net - Bugfix release: histogram sum failure to increment

Published by sandersaares over 5 years ago

  • 3.0.2
  • Fix defect where histogram sum failed to increment (#126).
prometheus-net - Hotfix for MetricPusher ObjectDisposedException

Published by sandersaares over 5 years ago

Fix ObjectDisposedException in MetricPusher (#124)

prometheus-net - 3.0.0 - ASP.NET Core metrics, API changes, protobuf removal and performance improvements

Published by sandersaares over 5 years ago

  • Added HTTP request metrics for ASP.NET Core.
  • Somewhat more realistic examples in readme.
  • Metrics exporter is now significantly more CPU and memory-efficient.
  • Added Observe(value, count) to histogram metric, enabling multiple observations with the same value to be counted.
  • Added CountExceptions() and MeasureInProgress() helper extensions.
  • Adjusted API to better conform to Prometheus client library guidelines in terms of default values.
  • Breaking change: assemblies are now strong-named.
  • Breaking change: removed "windows" from built-in metric names as they are not Windows-specific.
  • Breaking change: removed support for protobuf export format (it is no longer used by Prometheus).
  • Breaking change: API surface cleaned up, removed some legacy methods, made many internal types actually internal.
  • Breaking change: "on demand collectors" concept replaced with simpler "before collect callbacks". Works the same, just less code needed to use it and fewer possible error conditions.
  • Breaking change: removed support for "custom collectors", as this was a very special use case that did not benefit at all from the main functionality of the library. Just generate a Prometheus exporter output document yourself if you need to export arbitrary data.
prometheus-net - 2.1.3

Published by sandersaares about 6 years ago

  • 2.1.3
  • Fixed wrong case used for metric type in the export data format. Should always be lowercase. #96
  • 2.1.2
  • Fixed potential conflict when using pushgateway and also other exporter libraries (see #89)
  • 2.1.1
  • Various minor fixes (see issues on GitHub for details).
prometheus-net - 2.1.0 - improved API usability and added better control over initial value publishing

Published by sandersaares over 6 years ago

  • Add MetricOptions and subclasses for more extensible API (old API surface remains available)
  • Add SuppressInitialValue to metric configuration (ref https://www.robustperception.io/existential-issues-with-metrics/)
  • Add .WithLabels() as alternative to .Labels() for fewer annoying Intellisense conflicts.
  • Merged PRs adding some more convenient API usage scenarios.
prometheus-net - 2.0.0 - Targeting .NET Standard 2.0

Published by sandersaares over 6 years ago

  • Targeting .NET Standard 2.0 as minimum version (.NET Framework 4.6.1, .NET Core 2.0 and Mono 5.4)
  • Added ASP.NET Core middlware
  • Added possibility to signal a failed scrape from on-demand collectors
  • Removed dependency on Reactive Extensions
  • Minor breaking changes to API
  • Performance improvements for hot-path code
  • Removed mostly obsolete PerfCounterCollector class
  • Fixed NuGet package contents to remove assemblies from dependencies
  • Various minor fixes (see issues on GitHub for details)
Package Rankings
Top 9.59% on Proxy.golang.org
Badges
Extracted from project README
Build status Nuget
Related Projects