<div dir="ltr"><p>Hello,</p>
<p>Is it possible to use custom function to define entry ?</p>
<p>Entry creation and subscription:</p>
<pre><code>     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)
</code></pre>
<p>Configuration file:</p>
<pre><code>{exometer_core, [
      {report, [
          {reporters, [
              {exometer_report_influxdb, [
                  {protocol, http},
                  {host, <<"127.0.0.1">>},
                  {port, 8086},
                  {db, <<"db">>},
                  {batch_window_size, 0},
                  {timestamping, true}
              ]}
          ]}
]}]}
</code></pre>
<p>I send metrics values to influxdb.</p>
<p>And I got an error :</p>
<pre><code>=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: []
</code></pre></div>