mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			784 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			784 B
		
	
	
	
		
			Puppet
		
	
	
	
	
	
# @summary Prometheus monitoring of a Django frontend and RabbitMQ server.
 | 
						|
#
 | 
						|
class kandra::app_frontend_monitoring {
 | 
						|
  include kandra::prometheus::memcached
 | 
						|
  include kandra::prometheus::rabbitmq
 | 
						|
  include kandra::prometheus::uwsgi
 | 
						|
  include kandra::prometheus::process
 | 
						|
  include kandra::prometheus::grok
 | 
						|
  kandra::firewall_allow { 'tusd': port => '9900' }
 | 
						|
 | 
						|
  file { '/etc/cron.d/rabbitmq-monitoring':
 | 
						|
    ensure => absent,
 | 
						|
  }
 | 
						|
  zulip::cron { 'check-rabbitmq-queue':
 | 
						|
    minute  => '*',
 | 
						|
    user    => 'root',
 | 
						|
    command => '/home/zulip/deployments/current/scripts/nagios/check-rabbitmq-queue',
 | 
						|
  }
 | 
						|
  zulip::cron { 'check-rabbitmq-consumers':
 | 
						|
    minute  => '*',
 | 
						|
    user    => 'root',
 | 
						|
    command => '/home/zulip/deployments/current/scripts/nagios/check-rabbitmq-consumers',
 | 
						|
  }
 | 
						|
}
 |