aboutsummaryrefslogtreecommitdiff
path: root/pkg/instance/metric.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-06-07 00:09:57 +0200
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-06-07 00:09:57 +0200
commit345fe658fa8a4306caa74f72a618e499343675c2 (patch)
tree695a6ade81b9d733c98ed8f9e0050930b563fed1 /pkg/instance/metric.go
parent6782bd01db5a443bb6594ac6d577cfe95e2a427a (diff)
added start on refactored instance tests
Diffstat (limited to 'pkg/instance/metric.go')
-rw-r--r--pkg/instance/metric.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/instance/metric.go b/pkg/instance/metric.go
index 7e3e8b2..db11bd2 100644
--- a/pkg/instance/metric.go
+++ b/pkg/instance/metric.go
@@ -6,11 +6,9 @@ import (
)
var (
- reqcnt monitoring.Counter // number of incoming http requests
- rspcnt monitoring.Counter // number of valid http responses
- latency monitoring.Histogram // request-response latency
- lastSthTimestamp monitoring.Gauge // unix timestamp from the most recent sth
- lastSthSize monitoring.Gauge // tree size of most recent sth
+ reqcnt monitoring.Counter // number of incoming http requests
+ rspcnt monitoring.Counter // number of valid http responses
+ latency monitoring.Histogram // request-response latency
)
func init() {
@@ -18,6 +16,4 @@ func init() {
reqcnt = mf.NewCounter("http_req", "number of http requests", "logid", "endpoint")
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")
- lastSthSize = mf.NewGauge("last_sth_size", "most recent sth tree size", "logid")
}