lib/splash/constants.rb in prometheus-splash-0.5.3 vs lib/splash/constants.rb in prometheus-splash-0.6.0

- old
+ new

@@ -1,10 +1,16 @@ # coding: utf-8 + +# base Splash module / namespace module Splash + + # Constants namespace module Constants - VERSION = "0.5.3" + # Current splash version + VERSION = "0.6.0" + # the path to th config file, not overridable by config CONFIG_FILE = "/etc/splash.yml" # the default execution trace_path if backend file TRACE_PATH="/var/run/splash" @@ -38,11 +44,16 @@ # the default prometheus pushgateway host PROMETHEUS_PUSHGATEWAY_HOST = "localhost" # the default prometheus pushgateway port PROMETHEUS_PUSHGATEWAY_PORT = "9091" + # the default prometheus pushgateway port + PROMETHEUS_PUSHGATEWAY_PATH = '' + # the default prometheus URL + PROMETHEUS_URL = "http://localhost:9090" + # the default path fo execution report template EXECUTION_TEMPLATE="/etc/splash_execution_report.tpl" # the list of authorized tokens for template, carefull override, EXECUTION_TEMPLATE_TOKENS_LIST = [:end_date,:start_date,:cmd_name,:cmd_line,:stdout,:stderr,:desc,:status,:exec_time] @@ -53,13 +64,30 @@ # transports default settings TRANSPORTS_STRUCT = { :list => [:rabbitmq], :active => :rabbitmq, :rabbitmq => { :port => 5672, :host => "localhost", :vhost => '/'} } - LOGGERS_STRUCT = { :list => [:cli,:daemon, :dual], + # loggers default settings + LOGGERS_STRUCT = { :list => [:cli,:daemon, :dual, :web], :default => :cli, :level => :info, :daemon => {:file => '/var/log/splash.log'}, + :web => {:file => '/var/log/splash_web.log'}, :cli => {:color => true, :emoji => true } } + + WEBADMIN_IP = "127.0.0.1" + WEBADMIN_PORT = "9234" + WEBADMIN_PROXY = false + # the display name of daemon in proc info (ps/top) + WEBADMIN_PROCESS_NAME="Splash : WebAdmin." + # the default pid file path + WEBADMIN_PID_PATH="/var/run" + # the default pid file name + WEBADMIN_PID_FILE="splash.pid" + # the default sdtout trace file + WEBADMIN_STDOUT_TRACE="stdout.txt" + # the default sdterr trace file + WEBADMIN_STDERR_TRACE="stderr.txt" + end end