cabot_config.py
1 import os 2 3 # Credentials for Graphite server to monitor 4 GRAPHITE_API = os.environ.get('GRAPHITE_API') 5 GRAPHITE_USER = os.environ.get('GRAPHITE_USER') 6 GRAPHITE_PASS = os.environ.get('GRAPHITE_PASS') 7 GRAPHITE_FROM = os.getenv('GRAPHITE_FROM', '-10minute') 8 9 # Credentials for Jenkins server to monitor 10 JENKINS_API = os.environ.get('JENKINS_API') 11 JENKINS_USER = os.environ.get('JENKINS_USER') 12 JENKINS_PASS = os.environ.get('JENKINS_PASS') 13 14 # Point at a public calendar you want to use to schedule a duty rota 15 CALENDAR_ICAL_URL = os.environ.get('CALENDAR_ICAL_URL') 16 17 # So that links back to the Cabot instance display correctly 18 WWW_HTTP_HOST = os.environ.get('WWW_HTTP_HOST') 19 WWW_SCHEME = os.environ.get('WWW_SCHEME', "https") 20 21 HTTP_USER_AGENT = os.environ.get('HTTP_USER_AGENT', 'Cabot') 22 23 # How often should alerts be sent for important failures? 24 ALERT_INTERVAL = int(os.environ.get('ALERT_INTERVAL', 10)) 25 26 # How often should notifications be sent for less important issues? 27 NOTIFICATION_INTERVAL = int(os.environ.get('NOTIFICATION_INTERVAL', 120)) 28 29 # How long should an acknowledgement silence alerts for? 30 ACKNOWLEDGEMENT_EXPIRY = int(os.environ.get('ACKNOWLEDGEMENT_EXPIRY', 20)) 31 32 # Default plugins are used if the user has not specified. 33 CABOT_PLUGINS_ENABLED = os.environ.get('CABOT_PLUGINS_ENABLED', 'cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email')