anchor.diff:  %%
   %% `{hostname, string()}` - This plugin uses a tag called 'host' to denote
   %% the hostname to which this metric belongs. Default: net_adm:localhost()
  +%%
  +%% `{join_metric_and_datapoint, bool()}` - If true, the datapoint name is
  +%% concatenated to the metric name. This increases scan performance in HBase
  +%% for metrics with a lot of entries.
   %% @end
   
   -module(exometer_report_opentsdb).
  
positive.code:     {Host, Port} = get_opt(host, Opts, {?DEFAULT_HOST, ?DEFAULT_PORT}),
      ReconnectInterval = get_opt(reconnect_interval, Opts, ?RECONNECT_INTERVAL) * 1000,
      ConnectTimeout = get_opt(connect_timeout, Opts, ?DEFAULT_CONNECT_TIMEOUT),
      State = #st{
                      reconnect_interval = ReconnectInterval,
                      host = Host,
                      port = Port,
                      connect_timeout = ConnectTimeout,
                      hostname =  check_hostname(get_opt(hostname, Opts, "auto"))
                  },
      case connect_opentsdb(Host, Port, ConnectTimeout) of
          {ok, Sock} ->
  
negative.code:           reconnect_interval = ?RECONNECT_INTERVAL,
            connect_timeout = ?DEFAULT_CONNECT_TIMEOUT,
            hostname = undefined,
            socket = undefined,
            join_metric_and_datapoint = false}).
  
  %% calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}}).
  -define(UNIX_EPOCH, 62167219200).
  