Skip to content

Commit

Permalink
Just one label.
Browse files Browse the repository at this point in the history
  • Loading branch information
beautifulentropy committed Jan 30, 2025
1 parent e71e7ed commit fceeaea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ra/ra.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ func NewRegistrationAuthorityImpl(
// determined.
newRegWithContactCounter := prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "new_registrations_with_contacts",
Help: "A counter of new registrations with contacts, labeled by new=[bool], update=[bool]",
}, []string{"new", "update"})
Help: "A counter of new registrations with contacts, labeled by new=[bool]",
}, []string{"new"})
stats.MustRegister(newRegWithContactCounter)

issuersByNameID := make(map[issuance.NameID]*issuance.Certificate)
Expand Down Expand Up @@ -430,7 +430,7 @@ func (ra *RegistrationAuthorityImpl) NewRegistration(ctx context.Context, reques
// TODO(#7966): Remove once the rate of registrations with contacts has been
// determined.
for range request.Contact {
ra.newRegWithContactCounter.With(prometheus.Labels{"new": "true", "update": "false"}).Inc()
ra.newRegWithContactCounter.With(prometheus.Labels{"new": "true"}).Inc()
}

ra.newRegCounter.Inc()
Expand Down Expand Up @@ -1295,7 +1295,7 @@ func (ra *RegistrationAuthorityImpl) UpdateRegistrationContact(ctx context.Conte
// TODO(#7966): Remove once the rate of registrations with contacts has
// been determined.
for range req.Contacts {
ra.newRegWithContactCounter.With(prometheus.Labels{"new": "false", "update": "true"}).Inc()
ra.newRegWithContactCounter.With(prometheus.Labels{"new": "false"}).Inc()
}

update, err := ra.SA.UpdateRegistrationContact(ctx, &sapb.UpdateRegistrationContactRequest{
Expand Down

0 comments on commit fceeaea

Please sign in to comment.