Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No metrics? #6

Open
building39 opened this issue Oct 29, 2015 · 1 comment
Open

No metrics? #6

building39 opened this issue Oct 29, 2015 · 1 comment

Comments

@building39
Copy link

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, []}
]}.

@joewilliams
Copy link
Contributor

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.

Please note that all folsom related projects have moved to https://github.com/folsom-project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants