diff options
| author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-25 14:36:35 +0100 | 
|---|---|---|
| committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-02-25 14:36:35 +0100 | 
| commit | c05c22ddbc771e7713849cae40f9d91bfafa0503 (patch) | |
| tree | b97d11ab2a914806e6f671f9aff1cab9767b2eab /metric.go | |
| parent | c9b4b43654f0ff26207cc63449f13298cd3c56e8 (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.go | 2 | 
1 files changed, 0 insertions, 2 deletions
| @@ -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")  } | 
