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

Use of custom function to define entry #115

Open
Amuhar opened this issue Sep 13, 2018 · 0 comments
Open

Use of custom function to define entry #115

Amuhar opened this issue Sep 13, 2018 · 0 comments

Comments

@Amuhar
Copy link

Amuhar commented Sep 13, 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: []
@Amuhar Amuhar changed the title Use custom function to define entry Use of custom function to define entry Sep 13, 2018
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

1 participant