Skip to content

Commit

Permalink
remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sushanth0910 committed Nov 13, 2024
1 parent 12831ea commit 831a8ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ type Metrics struct {
Latency *prometheus.HistogramVec
EC2DescribeInstanceCallCount prometheus.Counter
StsConnectionFailure *prometheus.CounterVec
StsConnectionFailure *prometheus.CounterVec
StsResponses *prometheus.CounterVec
DynamicFileFailures prometheus.Counter
StsThrottling *prometheus.CounterVec
StsThrottling *prometheus.CounterVec
E2ELatency *prometheus.HistogramVec
DynamicFileEnabled prometheus.Gauge
DynamicFileOnly prometheus.Gauge
Expand All @@ -69,31 +67,26 @@ func createMetrics(reg prometheus.Registerer) Metrics {
Help: "Dynamic file failures",
},
),
StsConnectionFailure: factory.NewCounterVec(
StsConnectionFailure: factory.NewCounterVec(
prometheus.CounterOpts{
Namespace: Namespace,
Name: "sts_connection_failures_total",
Help: "Sts call could not succeed or timedout",
}, []string{"StsEndpointType"},
}, []string{"StsEndpointType"},
),
StsThrottling: factory.NewCounterVec(
StsThrottling: factory.NewCounterVec(
prometheus.CounterOpts{
Namespace: Namespace,
Name: "sts_throttling_total",
Help: "Sts call got throttled",
}, []string{"StsEndpointType"},
}, []string{"StsEndpointType"},
),
StsResponses: factory.NewCounterVec(
prometheus.CounterOpts{
Namespace: Namespace,
Name: "sts_responses_total",
Help: "Sts responses with error code label",
}, []string{"ResponseCode", "StsEndpointType"},
}, []string{"ResponseCode", "StsEndpointType"},
),
Latency: factory.NewHistogramVec(
prometheus.HistogramOpts{
Expand Down
1 change: 1 addition & 0 deletions pkg/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ func (v tokenVerifier) Verify(token string) (*Identity, error) {
stsEndpointType := metrics.STSRegional
if parsedURL.Host == "sts.amazonaws.com" {
stsEndpointType = metrics.STSGlobal
}

logrus.Infof("Sending request to %s endpoint, host: %s", stsEndpointType, parsedURL.Host)

Expand Down

0 comments on commit 831a8ca

Please sign in to comment.