config/splash.yml in prometheus-splash-0.0.2 vs config/splash.yml in prometheus-splash-0.0.3

- old
+ new

@@ -1,6 +1,9 @@ +# Splash Configuration :splash: + +### Main Configuration :templates: :execution: :path: /etc/splash_execution_report.tpl :tokens: - :date @@ -8,33 +11,88 @@ - :cmd_line - :stdout - :stderr - :desc - :status - :logs: - - :log: /tmp/test - :pattern: ERROR - - :log: /var/log/message - :pattern: error + - :exec_time + :backends: + :list: + - :file + - :redis + :stores: + :execution_trace: + :type: :file + :path: /tmp/splash +# :execution_trace: +# :type: :redis +# :host: localhost +# :port: 6379 +# #:auth: "mykey" +# :base: 1 + :transports: + :active: :rabbitmq + :rabbitmq: + :url: amqp://127.0.0.1 + :daemon: + :logmon_scheduling: + :every: 20s + :process_name: "Splash : daemon." + :paths: + :pid_path: /tmp + :trace_path: /tmp/splash + :files: + :stdout_trace: stdout.txt + :stderr_trace: stderr.txt + :pid_file: splash.pid :prometheus: :pushgateway: :host: "localhost" :port: 9091 + + +### configuration of commands and scheduling :commands: + :id_root: + :desc: run id command on root + :command: id root + :true_test: + :desc: "test command returning true : 0" + :command: "true" + :schedule: + :every: "1h" + :on_failure: :ls_slash_tmp + :on_success: :pwd :false_test: - :desc: "test command" + :desc: "test command returning false > 0" :command: "false" + :schedule: + :every: "1h" + :on_failure: :ls_slash_tmp + :on_success: :pwd :ls_slash_tmp: :desc: list file in /tmp :command: ls -al /tmp :user: daemon - :daemon: - :user: daemon - :group: daemon - :process_name: "Splash : Prometheus logs monitoring." - :paths: - :pid_path: /tmp - :trace_path: /tmp/splash - :files: - :stdout_trace: stdout.txt - :stderr_trace: stderr.txt - :pid_file: splash.pid + :on_success: :echo1 + :pwd: + :desc: run pwd + :command: pwd + :on_success: :echo1 + :on_failure: :echo2 + :echo1: + :desc: echo 'foo' + :command: echo foo + :on_failure: :echo3 + :echo2: + :desc: echo 'bar' + :command: echo bar + :echo3: + :desc: echo 'been' + :command: echo been + + +### configuration of monitored logs + :logs: + - :log: /tmp/test + :pattern: ERROR + - :log: /var/log/message + :pattern: error