aboutsummaryrefslogtreecommitdiff
path: root/metric.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-25 14:36:35 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-02-25 14:36:35 +0100
commitc05c22ddbc771e7713849cae40f9d91bfafa0503 (patch)
treeb97d11ab2a914806e6f671f9aff1cab9767b2eab /metric.go
parentc9b4b43654f0ff26207cc63449f13298cd3c56e8 (diff)
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.
Diffstat (limited to 'metric.go')
-rw-r--r--metric.go2
1 files changed, 0 insertions, 2 deletions
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")
}