From fae68918a18987f2e3e803d8896e2e276d7167fc Mon Sep 17 00:00:00 2001 From: Tanner Prestegard <tanner.prestegard@ligo.org> Date: Wed, 12 Dec 2018 09:44:37 -0600 Subject: [PATCH] Remove unused uptime information --- config/settings/base.py | 3 --- gracedb/events/reports.py | 14 -------------- 2 files changed, 17 deletions(-) diff --git a/config/settings/base.py b/config/settings/base.py index 539c3179a..21f5029c9 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -186,9 +186,6 @@ LATENCY_REPORT_DEST_DIR = PROJECT_DATA_DIR LATENCY_MAXIMUM_CHARTED = 1800 LATENCY_REPORT_WEB_PAGE_FILE_PATH = join(PROJECT_DATA_DIR, "latency.inc") -# Uptime reporting -UPTIME_REPORT_DIR = PROJECT_DATA_DIR - # Rate file location RATE_INFO_FILE = join(PROJECT_DATA_DIR, "rate_info.json") diff --git a/gracedb/events/reports.py b/gracedb/events/reports.py index 8f3c81d74..aeaa82f0f 100644 --- a/gracedb/events/reports.py +++ b/gracedb/events/reports.py @@ -40,20 +40,6 @@ def histo(request): except IOError: table = None - # XXX The old nagios scraping code no longer works. It scrapes sentry anyway, instead - # of dashboard.ligo.org. Anyway, the reports page here isn't really the place for this - # kind of information. - #try: - # uptime = open(settings.UPTIME_REPORT_DIR + "/ytd.html", "r").read() - #except IOError: - # uptime = None - - # Rate information - #try: - # rate_info = open(settings.RATE_INFO_FILE).read() - #except IOError: - # rate_info = None - # For the binned counts, read in the contents of the file. try: f = open(settings.BINNED_COUNT_FILE, 'r') -- GitLab