Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

skyline.analyzer.metrics #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ def run(self):
# Log to Graphite
self.send_graphite_metric('skyline.analyzer.run_time', '%.2f' % (time() - now))
self.send_graphite_metric('skyline.analyzer.total_analyzed', '%.2f' % (len(unique_metrics) - sum(exceptions.values())))
self.send_graphite_metric('skyline.analyzer.total_anomalies', '%d' % len(self.anomalous_metrics))
self.send_graphite_metric('skyline.analyzer.total_metrics', '%d' % len(unique_metrics))
for key, value in exceptions.items():
send_metric = 'skyline.analyzer.exceptions.%s' % key
self.send_graphite_metric(send_metric, '%d' % value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this give crazy tracebacks? You don't really want to put that in Graphite as a metric name.

for key, value in anomaly_breakdown.items():
send_metric = 'skyline.analyzer.anomaly_breakdown.%s' % key
self.send_graphite_metric(send_metric, '%d' % value)

# Check canary metric
raw_series = self.redis_conn.get(settings.FULL_NAMESPACE + settings.CANARY_METRIC)
Expand Down