statreceiver: Add influx v3 output

Change-Id: Iffb07ae7304addd94f6c4b172f4fbb2f9ac42d8d
This commit is contained in:
Isaac Hess 2020-02-12 09:55:11 -07:00
parent 4e6a01f797
commit ddbaaf451e

View File

@ -30,6 +30,7 @@ pbufsize = 1000
-- * db("postgres", connstring) goes to postgres
influx_out = graphite("influx-internal.datasci.storj.io.:2003")
graphite_out = graphite("graphite-internal.datasci.storj.io.:2003")
influx_out_v3 = influx("influx-internal.datasci.storj.io:8086/write?db=v3_stats_new")
v2_metric_handlers = sanitize(mbufprep(mcopy(
-- send all satellite data to graphite
@ -46,9 +47,10 @@ v2_metric_handlers = sanitize(mbufprep(mcopy(
v3_metric_handlers = mcopy(
downgrade(v2_metric_handlers)
)
v3_metric_handlers = mbufprep(mcopy(
mbuf(downgrade(v2_metric_handlers), mbufsize),
mbuf(influx_out_v3, mbufsize)
))
-- create a metric parser.
metric_parser =