mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #39928 from jmickle/develop
updating documentation for librato returner
This commit is contained in:
commit
bdbb1f814e
@ -22,6 +22,7 @@ returner modules
|
||||
hipchat_return
|
||||
influxdb_return
|
||||
kafka_return
|
||||
librato_return
|
||||
local
|
||||
local_cache
|
||||
mattermost_returner
|
||||
|
6
doc/ref/returners/all/salt.returners.librato_return.rst
Normal file
6
doc/ref/returners/all/salt.returners.librato_return.rst
Normal file
@ -0,0 +1,6 @@
|
||||
=============================
|
||||
salt.returners.librato_return
|
||||
=============================
|
||||
|
||||
.. automodule:: salt.returners.librato_return
|
||||
:members:
|
@ -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']})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user