Merge pull request #39928 from jmickle/develop

updating documentation for librato returner
This commit is contained in:
Mike Place 2017-03-09 12:46:56 -07:00 committed by GitHub
commit bdbb1f814e
3 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,7 @@ returner modules
hipchat_return
influxdb_return
kafka_return
librato_return
local
local_cache
mattermost_returner

View File

@ -0,0 +1,6 @@
=============================
salt.returners.librato_return
=============================
.. automodule:: salt.returners.librato_return
:members:

View File

@ -10,6 +10,7 @@ The librato python client can be found at:
https://github.com/librato/python-librato
.. code-block:: yaml
librato.email: example@librato.com
librato.api_token: abc12345def
@ -23,6 +24,7 @@ could be modified to include the ec2 tags. Multiple dimensions are added simply
by adding more tags to the submission.
.. code-block:: python
pillar_data = __salt__['pillar.raw']()
q.add(metric.name, value, tags={'Name': ret['id'],'Region': pillar_data['ec2_tags']['Name']})