Return data to an influxdb server.

New in version 2015.8.0.

To enable this returner the minion will need the python client for influxdb installed and the following values configured in the minion or master config, these are the defaults:

influxdb.db: 'salt'
influxdb.user: 'salt'
influxdb.password: 'salt' 'localhost'
influxdb.port: 8086

Alternative configuration values can be used by prefacing the configuration. Any values not found in the alternative configuration will be pulled from the default location:

alternative.influxdb.db: 'salt'
alternative.influxdb.user: 'salt'
alternative.influxdb.password: 'salt' 'localhost'
alternative.influxdb.port: 6379

To use the influxdb returner, append '--return influxdb' to the salt command.

salt '*' --return influxdb

To use the alternative configuration, append '--return_config alternative' to the salt command.

salt '*' --return influxdb --return_config alternative

To override individual configuration items, append --return_kwargs '{"key:": "value"}' to the salt command.

New in version 2016.3.0.

salt '*' --return influxdb --return_kwargs '{"db": "another-salt"}'

Return a dict of the last function called for all minions


Return the information returned when the specified job id was executed


Return a list of all job ids


Return the load data that marks a specified jid


Return a list of minions

salt.returners.influxdb_return.prep_jid(nocache=False, passed_jid=None)

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


Return data to a influxdb data store

salt.returners.influxdb_return.save_load(jid, load, minions=None)

Save the load to the specified jid

salt.returners.influxdb_return.save_minions(jid, minions, syndic_id=None)

Included for API consistency