dalmatinerdb / ddb_proxy

Proxy for other metric protocols
MIT License
9 stars 5 forks source link

shutdown on attempted write via influx line protocol #18

Closed jonathanstrong closed 7 years ago

jonathanstrong commented 7 years ago

trying to write via influx line protocol via command

curl -i -XPOST 'http://localhost:8086/write?db=InfluxDB' --data-binary 'cpu_load,host=server01 value=0.64 1434055562000000000'

ddb_proxy log shows

2017-04-07 00:14:25.059 [warning] <0.6.0> lager_error_logger_h dropped 46 messages in the last second that exceeded the limit of 100 messages/sec
2017-04-07 00:14:25.059 [error] <0.148.0> gen_server dp_index terminated with reason: {'module could not be loaded',[{dqe_idx_ddb,add,[<<"InfluxDB">>,[<<"cpu_load">>,<<"value">>],<<"InfluxDB">>,[<<"cpu_load">>,<<"value">>,<<"host=server01">>],[{<<"ddb">>,<<"part_3">>,<<"host=server01">>},{<<"ddb">>,<<"part_2">>,<<"value">>},{<<"ddb">>,<<"part_1">>,<<"cpu_load">>},{<<"ddb">>,<<"key_length">>,<<"3">>},{<<>>,<<"host">>,<<"server01">>}]],[]},{dp_index,do_add,3,[{file,"/home/dalmatiner/src/ddb_proxy/_build/default/lib/ddb_proxy/src/dp_index.erl"},{line,155}]},{dp_index,handle_cast,...},...]}
2017-04-07 00:14:25.062 [error] <0.148.0> CRASH REPORT Process dp_index with 0 neighbours exited with reason: call to undefined function dqe_idx_ddb:add(<<"InfluxDB">>, [<<"cpu_load">>,<<"value">>], <<"InfluxDB">>, [<<"cpu_load">>,<<"value">>,<<"host=server01">>], [{<<"ddb">>,<<"part_3">>,<<"host=server01">>},{<<"ddb">>,<<"part_2">>,<<"value">>},{<<"ddb">>,<<"p...">>,...},...]) in gen_server:terminate/7 line 826
2017-04-07 00:14:25.062 [error] <0.146.0> Supervisor ddb_proxy_sup had child dp_index started with dp_index:start_link() at <0.148.0> exit with reason call to undefined function dqe_idx_ddb:add(<<"InfluxDB">>, [<<"cpu_load">>,<<"value">>], <<"InfluxDB">>, [<<"cpu_load">>,<<"value">>,<<"host=server01">>], [{<<"ddb">>,<<"part_3">>,<<"host=server01">>},{<<"ddb">>,<<"part_2">>,<<"value">>},{<<"ddb">>,<<"p...">>,...},...]) in context child_terminated
2017-04-07 00:14:25.062 [error] <0.146.0> Supervisor ddb_proxy_sup had child dp_index started with dp_index:start_link() at <0.148.0> exit with reason reached_max_restart_intensity in context shutdown
2017-04-07 00:14:25.063 [info] <0.7.0> Application ddb_proxy exited with reason: shutdown

using postgresql indexing and schema has been added.

Licenser commented 7 years ago

You need to use the postgres inderxer (dqe_idx_pg in the config file)