Exometer.Report.Zabbix (exometer_zabbix v1.0.0) View Source

Exometer reporter for Zabbix. It does batch sending every second by default. The reason for this is that the zabbix server closes the connection after your data is being sent.

Link to this section Summary

Functions

Exometer callback for generic messages

Initialize a zabbix reporter for exometer

Exometer callback where values will be sent

Link to this section Types

Specs

t() :: %Exometer.Report.Zabbix{
  batch_window_size: Integer.t(),
  data: List.t(),
  host: String.t(),
  hostname: String.t(),
  port: Integer.t(),
  timestamping: boolean()
}

Link to this section Functions

Link to this function

exometer_info(arg1, state)

View Source

Specs

exometer_info(msg :: term(), Exometer.Report.Zabbix.t()) ::
  {:ok, Exometer.Report.Zabbix.t()}

Exometer callback for generic messages

Specs

exometer_init(opts :: term()) :: Exometer.Report.Zabbix.t()

Initialize a zabbix reporter for exometer

Link to this function

exometer_report(metric, datapoint, extra, value, state)

View Source

Specs

exometer_report(
  :exometer_report.metric(),
  :exometer_report.datapoint(),
  :exometer_report.extra(),
  value :: term(),
  Exometer.Report.Zabbix.t()
) :: {:ok, Exometer.Report.Zabbix.t()}

Exometer callback where values will be sent