[RESOLVED] Issue was in configuration file, metric name was missing. Thanks Dev
On Thursday, October 8, 2020 at 12:15:09 AM UTC-7 Dev Sharma wrote: > Hi > > Cloudwatch exporter is configured to poll all the AWS/NetworkELB metrics, > some of the metrics are listed below. Cloudwatch-exporter continuously > logs the error message - CloudWatch scrape failed (see stack trace after > the configurations). Can you suggest what could be wrong here ? > > ===================== Configuration ==================== > region: us-west-2 > metrics: > - aws_namespace: AWS/NetworkELB > aws_metric_name: HealthyHostCount > aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup] > # set_timestamp: true > > - aws_namespace: AWS/NetworkELB > aws_metric_name: UnHealthyHostCount > aws_dimensions: [AvailabilityZone, LoadBalancer, TargetGroup] > # set_timestamp: true > > - aws_namespace: AWS/NetworkELB > aws_metric_name: TCP_Target_Reset_Count > aws_dimensions: [AvailabilityZone, LoadBalancer] > > ===================== End of Configuration ==================== > > > ===================== Stacktrace ==================== > io.prometheus.cloudwatch.CloudWatchCollector collect > WARNING: CloudWatch scrape failed > java.lang.NullPointerException > at > io.prometheus.cloudwatch.CloudWatchCollector.toSnakeCase(CloudWatchCollector.java:492) > at > io.prometheus.cloudwatch.CloudWatchCollector.scrape(CloudWatchCollector.java:531) > at > io.prometheus.cloudwatch.CloudWatchCollector.collect(CloudWatchCollector.java:664) > at > io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.findNextElement(CollectorRegistry.java:190) > at > io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:223) > at > io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:144) > at > io.prometheus.client.exporter.common.TextFormat.write004(TextFormat.java:22) > at > io.prometheus.client.exporter.MetricsServlet.doGet(MetricsServlet.java:48) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) > at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) > at org.eclipse.jetty.server.Server.handle(Server.java:502) > at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) > at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) > at > org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) > at > org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) > at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) > at > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) > at java.base/java.lang.Thread.run(Unknown Source) > > ===================== End of Stacktrace ==================== > > > Thanks > Devendra > > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/50b4dd58-49f8-4f2f-b635-abcd2950560cn%40googlegroups.com.

