Current section
Files
Jump to
Current section
Files
src/endpoints/teleprom_metrics_handler.erl
-module(teleprom_metrics_handler).
-export([init/2]).
init(Req0, Opts) ->
Req1 =
cowboy_req:reply(
200, #{<<"content-type">> => <<"text/plain">>},
prometheus_text_format:format(),
Req0
),
{ok, Req1, Opts}.