Skip to content

Commit 2c59949

Browse files
committed
add prefix and units to metrics
1 parent f54adfd commit 2c59949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

internal/scti/handlers.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,37 +76,37 @@ func setupMetrics() {
7676
// TODO(phboneff): add metrics for deduplication and chain storage.
7777
knownLogs = promauto.NewGaugeVec(
7878
prometheus.GaugeOpts{
79-
Name: "known_logs",
79+
Name: "ct_known_logs",
8080
Help: "Set to 1 for known logs",
8181
},
8282
[]string{"origin"})
8383
lastSCTTimestamp = promauto.NewGaugeVec(
8484
prometheus.GaugeOpts{
85-
Name: "last_sct_timestamp",
85+
Name: "ct_last_sct_timestamp_ms",
8686
Help: "Time of last SCT in ms since epoch",
8787
},
8888
[]string{"origin"})
8989
lastSCTIndex = promauto.NewGaugeVec(
9090
prometheus.GaugeOpts{
91-
Name: "last_sct_index",
91+
Name: "ct_last_sct_index",
9292
Help: "Index of last SCT",
9393
},
9494
[]string{"origin"})
9595
reqsCounter = promauto.NewCounterVec(
9696
prometheus.CounterOpts{
97-
Name: "http_reqs",
97+
Name: "ct_http_reqs",
9898
Help: "Number of requests",
9999
},
100100
[]string{"origin", "ep"})
101101
rspsCounter = promauto.NewCounterVec(
102102
prometheus.CounterOpts{
103-
Name: "http_rsps",
103+
Name: "ct_http_rsps",
104104
Help: "Number of responses",
105105
},
106106
[]string{"origin", "op", "code"})
107107
rspLatency = promauto.NewHistogramVec(
108108
prometheus.HistogramOpts{
109-
Name: "http_latency",
109+
Name: "ct_http_latency",
110110
Help: "Latency of responses in seconds",
111111
},
112112
[]string{"origin", "op", "code"})

0 commit comments

Comments
 (0)