Skip to content

Commit

Permalink
Merge pull request #58 from infrawatch/plugin/write_log
Browse files Browse the repository at this point in the history
[write_log] Add template for write-log plugin
  • Loading branch information
elfiesmelfie authored Aug 23, 2021
2 parents 1f1e593 + 3d3f82e commit 1992666
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,15 @@ See the collectd `config guide <https://collectd.org/documentation/manpages/coll
format: json
store_rates: true

collectd_plugin_write_log_*
~~~~~~~~~~~~~~~~~~~~~~~~~~~
These vars are ones passed to the ``write_log`` plugin.
See the collectd `config guide <https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_write_log>`_ for details.

::

collectd_plugin_write_log_format: JSON

collectd_plugin_write_prometheus_*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
These vars are ones passed to the ``write_prometheus`` plugin.
Expand Down
2 changes: 2 additions & 0 deletions defaults/main/write_log.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
collectd_plugin_write_log_format: JSON
1 change: 1 addition & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@
- vmem
- write_http
- write_kafka
- write_log
5 changes: 5 additions & 0 deletions templates/write_log.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LoadPlugin write_log

<Plugin "write_log">
Format "{{ collectd_plugin_write_log_format }}"
</Plugin>

0 comments on commit 1992666

Please sign in to comment.