Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RA: Delete legacy rate limit metrics #7960

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions ra/ra.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ type RegistrationAuthorityImpl struct {
ctpolicyResults *prometheus.HistogramVec
revocationReasonCounter *prometheus.CounterVec
namesPerCert *prometheus.HistogramVec
rlCheckLatency *prometheus.HistogramVec
rlOverrideUsageGauge *prometheus.GaugeVec
newRegCounter prometheus.Counter
recheckCAACounter prometheus.Counter
newCertCounter *prometheus.CounterVec
Expand Down Expand Up @@ -157,18 +155,6 @@ func NewRegistrationAuthorityImpl(
)
stats.MustRegister(namesPerCert)

rlCheckLatency := prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: "ratelimitsv1_check_latency_seconds",
Help: fmt.Sprintf("Latency of ratelimit checks labeled by limit=[name] and decision=[%s|%s], in seconds", ratelimits.Allowed, ratelimits.Denied),
}, []string{"limit", "decision"})
stats.MustRegister(rlCheckLatency)

overrideUsageGauge := prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "ratelimitsv1_override_usage",
Help: "Proportion of override limit used, by limit name and client identifier.",
}, []string{"limit", "override_key"})
stats.MustRegister(overrideUsageGauge)

newRegCounter := prometheus.NewCounter(prometheus.CounterOpts{
Name: "new_registrations",
Help: "A counter of new registrations",
Expand Down Expand Up @@ -258,8 +244,6 @@ func NewRegistrationAuthorityImpl(
purger: purger,
issuersByNameID: issuersByNameID,
namesPerCert: namesPerCert,
rlCheckLatency: rlCheckLatency,
rlOverrideUsageGauge: overrideUsageGauge,
newRegCounter: newRegCounter,
recheckCAACounter: recheckCAACounter,
newCertCounter: newCertCounter,
Expand Down
Loading