Skip to content

Latest commit

 

History

History
132 lines (57 loc) · 3.26 KB

exometer_report_amqp.md

File metadata and controls

132 lines (57 loc) · 3.26 KB

Module exometer_report_amqp

Custom reporting probe for sending data to AMQP exchange. Behaviours: exometer_report.

Description

AMQP integration. All data subscribed to by the plugin (through exosense_report:subscribe()) will be reported to an AMQP exchange.

Options:

{reconnect_interval, non_neg_integer()} - Time, in seconds, before attempting to reconnect. Default: '30' (sec)

{amqp_url, string()} - AMQP host and port. Default: "amqp://guest:guest@localhost:5672/%2f"

{hostname, string()} - This plugin uses a tag called 'host' to denote the hostname to which this metric belongs. Default: net_adm:localhost()

{exchange, string()} - The exchange to publish messages to.

{routing_key, string()} - The routing key to use to publish messages.

{buffer_size, bytes()} - The amount of data to buffer before sending to AMQP. Default: 0 (send immediately).

Function Index

exometer_call/3
exometer_cast/2
exometer_info/2
exometer_init/1
exometer_newentry/2
exometer_report/5
exometer_setopts/4
exometer_subscribe/5
exometer_terminate/2
exometer_unsubscribe/4

Function Details

exometer_call/3

exometer_call(Unknown, From, St) -> any()

exometer_cast/2

exometer_cast(Unknown, St) -> any()

exometer_info/2

exometer_info(Unknown, St) -> any()

exometer_init/1

exometer_init(Opts) -> any()

exometer_newentry/2

exometer_newentry(Entry, St) -> any()

exometer_report/5

exometer_report(Metric, DataPoint, Extra, Value, St) -> any()

exometer_setopts/4

exometer_setopts(Metric, Options, Status, St) -> any()

exometer_subscribe/5

exometer_subscribe(Metric, DataPoint, Extra, Interval, St) -> any()

exometer_terminate/2

exometer_terminate(X1, X2) -> any()

exometer_unsubscribe/4

exometer_unsubscribe(Metric, DataPoint, Extra, St) -> any()