influxdb

Return data to an InfluxDB <v2 server.

Important

Using this returner requires minion configuration.

Usage

To use the influxdb returner, append ‘–return influxdb’ to the Salt command.

salt '*' test.ping --return influxdb

To use the alternative configuration, append ‘–return_config alternative’ to the Salt command.

salt '*' test.ping --return influxdb --return_config alternative

To override individual configuration items, append –return_kwargs ‘{“key:”: “value”}’ to the Salt command.

salt '*' test.ping --return influxdb --return_kwargs '{"db": "another-salt"}'
saltext.influxdb.returners.influxdb_return.returner(ret)[source]

Return data to a influxdb data store

saltext.influxdb.returners.influxdb_return.save_load(jid, load, minions=None)[source]

Save the load to the specified jid

saltext.influxdb.returners.influxdb_return.save_minions(jid, minions, syndic_id=None)[source]

Included for API consistency

saltext.influxdb.returners.influxdb_return.get_load(jid)[source]

Return the load data that marks a specified jid

saltext.influxdb.returners.influxdb_return.get_jid(jid)[source]

Return the information returned when the specified job id was executed

saltext.influxdb.returners.influxdb_return.get_fun(fun)[source]

Return a dict of the last function called for all minions

saltext.influxdb.returners.influxdb_return.get_jids()[source]

Return a list of all job ids

saltext.influxdb.returners.influxdb_return.get_minions()[source]

Return a list of minions

saltext.influxdb.returners.influxdb_return.prep_jid(nocache=False, passed_jid=None)[source]

Do any work necessary to prepare a JID, including sending a custom id