[erlang-questions] Use of custom function to define exometer entry
Анна Мухаррам
amuhar3@REDACTED
Fri Sep 14 09:11:28 CEST 2018
Hello,
Is it possible to use custom function to define entry ?
Entry creation and subscription:
exometer:re_register([system_load, Metric],
{function, system_monitoring, highest_system_value, [Metric],
proplist, [pid, value, process_name]}, []),
exometer_report:subscribe(exometer_report_influxdb, [system_load, Metric],
[pid, value, process_name], 10000)
Configuration file:
{exometer_core, [
{report, [
{reporters, [
{exometer_report_influxdb, [
{protocol, http},
{host, <<"127.0.0.1">>},
{port, 8086},
{db, <<"db">>},
{batch_window_size, 0},
{timestamping, true}
]}
]}
]}]}
I send metrics values to influxdb.
And I got an error :
=ERROR REPORT==== 13-Sep-2018::14:39:17 ===
Loading of /home/anna/projects/test_project/_build/default/lib/hackney/ebin/hackney_tcp.beam
failed: not_purged
=ERROR REPORT==== 13-Sep-2018::14:39:07 ===
msg: "badarg\nKey = {key,exometer_report_influxdb,\n
[system_load,memory],\n [pid,value,process_name],\n
true,[]}\nTrace: [{exometer_report,report_values,2,\n
[{file,\"/home/anna/projects/test_project/_build/default/lib/exometer_core/src/exometer_report.erl\"},\n
{line,1550}]},\n
{exometer_report,do_report,2,\n
[{file,\"/home/anna/projects/test_project/_build/default/lib/exometer_core/src/exometer_report.erl\"},\n
{line,1220}]},\n
{exometer_report,handle_report,4,\n
[{file,\"/home/anna/projects/test_project/_build/default/lib/exometer_core/src/exometer_report.erl\"},\n
{line,1203}]},\n
{exometer_report,handle_info,2,\n
[{file,\"/home/anna/projects/test_project/_build/default/lib/exometer_core/src/exometer_report.erl\"},\n
{line,1118}]},\n
{gen_server,try_dispatch,4,[{file,\"gen_server.erl\"},{line,601}]},\n
{gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,667}]},\n
{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]"
options: []
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180914/da2d9956/attachment.htm>
More information about the erlang-questions
mailing list