megabytes, times: 3 end end # eventmachine process, daemonized with eye process :event_machine do pid_file 'em.pid' start_command 'ruby em.rb' stdout 'em.log' daemonize true stop_signals check :socket, addr: 'tcp://127.0.0.1:33221', every: 10. sample.rb -d -pid 2.pid -log sample2.log' stop_command 'kill -9 ' # for this child process check :memory, below: 300. God aims to be the simplest, most powerful monitoring application available.
Keeping your server processes and tasks running should be a simple part of your deployment process. sample.rb' # when no stop_command or stop_signals, default stop is # default `restart` command is `stop start` daemonize true stdall 'sample1.log' # ensure the CPU is below 30% at least 3 out of the last 5 times checked check :cpu, below: 30, times: end # self daemonized process process :sample2 do pid_file '2.pid' start_command 'ruby. We have collection of more than 1 Million open source products ranging from Enterprise product to small libraries in all platforms. God is an easy to configure, easy to extend monitoring framework written in Ruby. description: process orders items) tdata(:key. These two processes can communicate using the pipe. Performance Monitoring is available for our updated Ruby SDK ( sentry-ruby, not sentry-raven ). Example: read, write IO.pipe You can use this with the fork method (not available in Windows) to create a copy of the current process. That means that for example for the graphql gem for Ruby, AppSignal will instrument every GraphQL request that comes in, meaning it will provide a breakdown of all events in the request. This is used for Inter-Process Communication (IPC). This enables AppSignal app to digest, process, monitor, and show you the graphs and dashboards you need the most. # eye daemonized process process :sample1 do pid_file '1.pid' # pid_path will be expanded with the working_dir start_command 'ruby. A pipe is a pair of file descriptors that are connected to each other. seconds # chained start-restart with 5s interval, one by one. seconds, below: 100, times: 3 # global check for all processes group 'samples' do chain grace: 5. dirname ( _FILE_ ), %w ) ) stdall 'trash.log' # stdout,err logs for processes by default env 'APP_ENV' => 'production' # global env for each processes trigger :flapping, times: 10, within: 1. # except `env`, which merging down # uid "user_name" # run app as a user_name (optional) - available only on ruby >= 2.0 # gid "group_name" # run app as a group_name (optional) - available only on ruby >= 2.0 working_dir File. application 'test' do # All options inherits down to the config leafs. config do logger '/tmp/eye.log' end # Adding application Eye. load ( './eye/*.rb' ) # Eye self-configuration section Eye. # load submodules, here just for example Eye.