skyline.analyzer_dev package

Submodules

skyline.analyzer_dev.agent module

skyline.analyzer_dev.alerters module

alert_smtp(alert, metric)[source]

Called by trigger_alert() and sends an alert via smtp to the recipients that are configured for the metric.

alert_pagerduty(alert, metric)[source]

Called by trigger_alert() and sends an alert via PagerDuty

alert_hipchat(alert, metric)[source]

Called by trigger_alert() and sends an alert the hipchat room that is configured in settings.py.

alert_syslog(alert, metric)[source]

Called by trigger_alert() and log anomalies to syslog.

trigger_alert(alert, metric)[source]

Called by run to trigger an alert, analyzer passes two arguments, both of them tuples. The alerting strategy is determined and the approriate alert def is then called and passed the tuples.

Parameters:
  • alert

    The alert tuple specified in settings.py.

    alert[0]: The matched substring of the anomalous metric

    alert[1]: the name of the strategy being used to alert

    alert[2]: The timeout of the alert that was triggered

  • meric

    The metric tuple.

    metric[0]: the anomalous value metric[1]: The full name of the anomalous metric

skyline.analyzer_dev.algorithms_dev module

skyline.analyzer_dev.analyzer_dev module

Module contents