Skip to content

Custom collectors and multiprocess mode #943

Answered by csmarchbanks
tillprochaska asked this question in Q&A
Discussion options

You must be logged in to vote

I think your approach will work for most cases, but it might be safer to use two endpoints if you are simply concatenating the strings returned from each registry. That should work for the Prometheus exposition format (though double check to make sure that there is a newline after the end of the first result), but for OpenMetrics exposition you could run into some trouble as the responses would be separated by a # EOF line when it is not actually the end of the file.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@csmarchbanks
Comment options

Answer selected by tillprochaska
@tillprochaska
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants