Starting from version 2.1 Cowboy has special metrics stream handler - cowboy/src/cowboy_metrics_h.erl at master · ninenines/cowboy · GitHub.
Prometheus cowboy integration uses this interface to directly instrument Cowboy now.
4 Likes






















