From d61af273761e61c350c4a4abb3ce7db36ca72215 Mon Sep 17 00:00:00 2001 From: Claes Mogren Date: Mon, 25 Mar 2019 11:00:25 -0700 Subject: [PATCH] Actually enable prometheus metrics --- pkg/awsutils/awsutils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/awsutils/awsutils.go b/pkg/awsutils/awsutils.go index c5740d301e..3ac808c14e 100644 --- a/pkg/awsutils/awsutils.go +++ b/pkg/awsutils/awsutils.go @@ -187,13 +187,14 @@ func prometheusRegister() { prometheus.MustRegister(awsAPILatency) prometheus.MustRegister(awsAPIErr) prometheus.MustRegister(awsUtilsErr) - prometheusRegistered = false + prometheusRegistered = true } } // New creates an EC2InstanceMetadataCache func New() (*EC2InstanceMetadataCache, error) { // Initializes prometheus metrics + prometheusRegister() cache := &EC2InstanceMetadataCache{} cache.ec2Metadata = ec2metadata.New()