Skip to content

Commit

Permalink
Merge pull request #370 from istio-ecosystem/MESH-0000-remove-test-me…
Browse files Browse the repository at this point in the history
…trics

MESH-0000: remove metrics due to sample limit
  • Loading branch information
rtay1188 authored Jan 2, 2025
2 parents ed49448 + 255a04a commit 2d8cf04
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ func modifyServiceEntryForNewServiceOrPod(
defer util.LogElapsedTimeForTask(ctxLogger, "event", "", "", "", "TotalModifySETime")()
var modifySEerr error
var isServiceEntryModifyCalledForSourceCluster bool
totalConfigWriterEvents.Increment(api.WithAttributes(
attribute.Key("identity").String(sourceIdentity),
attribute.Key("environment").String(env),
))
if common.IsAdmiralOperatorMode() {
totalConfigWriterEvents.Increment(api.WithAttributes(
attribute.Key("identity").String(sourceIdentity),
attribute.Key("environment").String(env),
))
}
// Assigns sourceIdentity, which could have the partition prefix or might not, to the partitionedIdentity
// Then, gets the non-partitioned identity and assigns it to sourceIdentity. sourceIdentity will always have the original/non-partitioned identity
partitionedIdentity := sourceIdentity
Expand Down

0 comments on commit 2d8cf04

Please sign in to comment.