Provides a parser to translate Prometheus metrics into typed objects.
Install via NuGet:
Install-Package Promitor.Parsers.Prometheus.Core
Easily parse raw metrics from a stream to concrete types:
var metrics = await PrometheusMetricsParser.ParseAsync(rawMetricsStream);
Easily parse raw metrics from an HTTP response to concrete types:
HttpResponseMessage httpResponse = await httpClient.GetAsync("/scrape");
var metrics = await httpResponse.ReadAsPrometheusMetricsAsync(rawMetricsStream);
Learn more about our support options here.
Thanks for those who are supporting us via GitHub Sponsors.
Promitor is fully OSS and built free-of-charge, however, if you appreciate my work you can do a small donation.