From c05c22ddbc771e7713849cae40f9d91bfafa0503 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 25 Feb 2021 14:36:35 +0100 Subject: major refactor based on README.md and TODOs Updated types, improved units tests, isolated most test data to have it in one place, renamed and created new files to improve readability, and fixed a bunch of minor TODOs. --- metric.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'metric.go') diff --git a/metric.go b/metric.go index 1d0f100..7e3e8b2 100644 --- a/metric.go +++ b/metric.go @@ -9,7 +9,6 @@ var ( reqcnt monitoring.Counter // number of incoming http requests rspcnt monitoring.Counter // number of valid http responses latency monitoring.Histogram // request-response latency - lastSdiTimestamp monitoring.Gauge // unix timestamp from the most recent sdi lastSthTimestamp monitoring.Gauge // unix timestamp from the most recent sth lastSthSize monitoring.Gauge // tree size of most recent sth ) @@ -20,6 +19,5 @@ func init() { rspcnt = mf.NewCounter("http_rsp", "number of http requests", "logid", "endpoint", "status") latency = mf.NewHistogram("http_latency", "http request-response latency", "logid", "endpoint", "status") lastSthTimestamp = mf.NewGauge("last_sth_timestamp", "unix timestamp while handling the most recent sth", "logid") - lastSdiTimestamp = mf.NewGauge("last_sdi_timestamp", "unix timestamp while handling the most recent sdi", "logid") lastSthSize = mf.NewGauge("last_sth_size", "most recent sth tree size", "logid") } -- cgit v1.2.3