You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added folsom and folsom_cowboy to my application. Both are running, but I get no metrics, except for the vm metrics - they all seem to work. No metrics for pooler, either.
sys.config:
%%% --erlang--
[
{nebula2,
[
{cdmi_bootstrap, true},
{cdmi_location, "US-TX"},
{cdmi_metadata_module, nebula2_riak}
]
},
{lager,
[
{log_root, "/var/log/nebula2"},
{handlers,
[
{lager_console_backend, info, {colored, true}},
{lager_file_backend, [{file, "error.log"}, {level, error}]},
{lager_file_backend, [{file, "debug.log"}, {level, debug}]},
{lager_file_backend, [{file, "console.log"}, {level, info}]}
]
}
]
},
{folsom_cowboy,
[
{transport, cowboy_tcp_transport},
{transport_options, [{ip, {127, 0, 0, 1}}]}
]
},
{pooler,
[
{pools,
[
[
{name, riak_pool},
{group, riak},
{max_count, 500},
{init_count, 20},
{start_mfa, {riakc_pb_socket, start_link, ["nebriak1", 8087]}},
%% if you want to enable metrics, set this to a module with
%% an API conformant to the folsom_metrics module.
%% If this config is missing, then no metrics are sent.
{metrics_module, folsom_metrics}
]
]
}
]
}
].
Great, the vm metrics are built in. You'll need to add metrics to your application code, for instance folsom_metrics:new_counter(Name). to add a counter.
I've added folsom and folsom_cowboy to my application. Both are running, but I get no metrics, except for the vm metrics - they all seem to work. No metrics for pooler, either.
sys.config:
%%% --erlang--
[
{nebula2,
[
{cdmi_bootstrap, true},
{cdmi_location, "US-TX"},
{cdmi_metadata_module, nebula2_riak}
]
},
{lager,
[
{log_root, "/var/log/nebula2"},
{handlers,
[
{lager_console_backend, info, {colored, true}},
{lager_file_backend, [{file, "error.log"}, {level, error}]},
{lager_file_backend, [{file, "debug.log"}, {level, debug}]},
{lager_file_backend, [{file, "console.log"}, {level, info}]}
]
}
]
},
{folsom_cowboy,
[
{transport, cowboy_tcp_transport},
{transport_options, [{ip, {127, 0, 0, 1}}]}
]
},
{pooler,
[
{pools,
[
[
{name, riak_pool},
{group, riak},
{max_count, 500},
{init_count, 20},
{start_mfa, {riakc_pb_socket, start_link, ["nebriak1", 8087]}},
%% if you want to enable metrics, set this to a module with
%% an API conformant to the folsom_metrics module.
%% If this config is missing, then no metrics are sent.
{metrics_module, folsom_metrics}
]
]
}
]
}
].
{application, nebula2, [
{description, "Nebula 2 CDMI Server"},
{vsn, "0.1.0"},
{id, "git"},
{modules, []},
{registered, []},
{applications, [
lager,
kernel,
stdlib,
inets,
riakc,
crc16,
uuid,
jsx,
folsom,
cowboy,
folsom_cowboy
]},
{included_applications, [pooler, mcd]},
{mod, {nebula2_app, []}},
{env, []}
]}.
The text was updated successfully, but these errors were encountered: