Missing CollectAll() / ScrapeHandler.ProcessScrapeRequest equivalent
See original GitHub issueWe have been using the CollectAll() to manually process and expose the metrics through our own endpoint.
In 3.0 we are unable to do so. Would it be possible to expose
using (var serializer = new TextSerializer(delegate
{
response.ContentType = PrometheusConstants.ExporterContentType;
response.StatusCode = 200;
return response.OutputStream;
}, leaveOpen: false))
{
_registry.CollectAndSerialize(serializer);
}
as a public helper method?
We are not going to ever use MetricServer and all related methods are internal at this point.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have added
CollectorRegistry.CollectAndExportAsText(Stream)
to support metric data export via arbitrary custom endpoints.You can parse the text document and perform any custom manipulation you wish, for extra custom scenarios, before export.
I will publish this as preview version later today, after going through other open issues, and a stable version next week. If you have any more feedback for me on this point, please feel free to share.
Awesome thank you!