rnewson commented on a change in pull request #3416:
URL: https://github.com/apache/couchdb/pull/3416#discussion_r608075547
##########
File path: src/chttpd/src/chttpd_node.erl
##########
@@ -117,6 +117,12 @@ handle_node_req(#httpd{method='GET', path_parts=[_, Node,
<<"_stats">> | Path]}=
chttpd:send_json(Req, EJSON1);
handle_node_req(#httpd{path_parts=[_, _Node, <<"_stats">>]}=Req) ->
send_method_not_allowed(Req, "GET");
+handle_node_req(#httpd{method='GET', path_parts=[_, Node,
<<"_prometheus">>]}=Req) ->
+ Metrics = call_node(Node, couch_prometheus_server, scrape, []),
+ Header = [{<<"Content-Type">>, <<"text/plain">>}],
Review comment:
I'm referring to
https://prometheus.io/docs/instrumenting/exposition_formats/
`HTTP Content-Type | text/plain; version=0.0.4 (A missing version value will
lead to a fall-back to the most recent text format version.)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]