Skip to content

Commit

Permalink
EnablePrometheus check
Browse files Browse the repository at this point in the history
  • Loading branch information
phuhung273 committed Jan 15, 2025
1 parent d139b86 commit aff2a60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/node-termination-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ func main() {

ec2Client := ec2.New(sess)

go metrics.InitNodeMetrics(node, ec2Client)
if nthConfig.EnablePrometheus {
go metrics.InitNodeMetrics(node, ec2Client)
}

completeLifecycleActionDelay := time.Duration(nthConfig.CompleteLifecycleActionDelaySeconds) * time.Second
sqsMonitor := sqsevent.SQSMonitor{
Expand Down

0 comments on commit aff2a60

Please sign in to comment.