prometheus-cowboy icon indicating copy to clipboard operation
prometheus-cowboy copied to clipboard

Expose Prometheus metrics using cowboy/cowboy2

Results 5 prometheus-cowboy issues
Sort by recently updated
recently updated
newest added

fix compatibility with modern erlang.

See https://github.com/deadtrickster/prometheus-httpd/pull/13 for details

Hello, I encountered this problem when I used prometheus-cowboy: ``` log [error] Unhandled exception error:function_clause in cowboy_stream:early_error(1, Reason, PartialReq, Resp, Opts) Stacktrace: [{prometheus_cowboy2_instrumenter,dispatch_metrics,[#{early_error_time => -576460636993891978,listener_host => {0,0,0,0},listener_port => 6222,partial_req =>...

I justa dded the http handler to the erlang.mk deps file and got the following issue: ``` {"init terminating in do_boot",{function_clause,[{code,load_file,[{rebar3_archive_plugin,"0.0.1"}],[{file,"code.erl"},{line,144}]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,670}]},{erl_eval,expr,5,[{file,"erl_eval.erl"},{line,269}]},{erl_eval,eval_lc1,6,[{file,"erl_eval.erl"},{line,696}]},{erl_eval,eval_generate,7,[{file,"erl_eval.erl"},{line,725}]},{erl_eval,eval_lc,6,[{file,"erl_eval.erl"},{line,682}]},{erl_eval,exprs,5,[{file,"erl_eval.erl"},{line,122}]},{init,start_it,1,[]}]}} init terminating in do_boot () ``` Any idea how...

Is the metrics_callback absolutely required to publish custom non-cowboy related metrics via http/https? I tried different approaches, but unless I specify the metrics_callback no other metrics will get exported to...