Git Product home page Git Product logo

Comments (8)

icroitoru avatar icroitoru commented on July 28, 2024 1

hi,
does anyone have any idea if we can workaround this issue or we have to wait for the fix?
We are facing same issue after upgrading to cassandra ver. 4.0.1.
[cassandra-exporter-harvester-defer-0] WARN com.zegelin.cassandra.exporter.Harvester - Failed to register collector for MBean org.apache.cassandra.metrics:type=Connection,scope=xxx.xxx.xxx.xxx_7000,name=Timeouts. java.lang.IllegalArgumentException: 'xxx.xxx.xxx.xxx_7000' is not an IP string literal. at com.google.common.net.InetAddresses.forString(InetAddresses.java:153) at com.zegelin.cassandra.exporter.MetadataFactory.endpointLabels(MetadataFactory.java:71) at com.zegelin.cassandra.exporter.FactoriesSupplier.lambda$connectionMetric$17(FactoriesSupplier.java:474) at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$withLabelMaker$0(FactoriesSupplier.java:73) at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$build$1(FactoriesSupplier.java:99) at com.zegelin.cassandra.exporter.Harvester.lambda$registerMBean$0(Harvester.java:174) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)

The name might be different -> name=Timeouts | LargeMessageCompletedTasks | GossipMessageDroppedTasks | SmallMessagePendingTasks ...

from cassandra-exporter.

n1nj444 avatar n1nj444 commented on July 28, 2024

Hi !

BUMP, i got the same issue with cassandra 4.0.10 :

WARN [cassandra-exporter-harvester-defer-0] 2023-06-26 15:52:06,520 Harvester.java:191 - Failed to register collector for MBean org.apache.cassandra.metrics:type=Connection,scope=7000,name=GossipMessageDroppedTasks.
at com.zegelin.cassandra.exporter.MetadataFactory.endpointLabels(MetadataFactory.java:71)
at com.zegelin.cassandra.exporter.FactoriesSupplier.lambda$connectionMetric$17(FactoriesSupplier.java:474)
at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$withLabelMaker$0(FactoriesSupplier.java:73)
at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$build$1(FactoriesSupplier.java:99)
at com.zegelin.cassandra.exporter.Harvester.lambda$registerMBean$0(Harvester.java:174)
at com.zegelin.cassandra.exporter.InternalMetadataFactory.localBroadcastAddress(InternalMetadataFactory.java:91)
at com.zegelin.cassandra.exporter.Harvester.globalLabels(Harvester.java:283)
at com.zegelin.cassandra.exporter.netty.HttpHandler.sendMetrics(HttpHandler.java:292)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:94)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:39)
at com.zegelin.cassandra.exporter.InternalMetadataFactory.localBroadcastAddress(InternalMetadataFactory.java:91)
at com.zegelin.cassandra.exporter.Harvester.globalLabels(Harvester.java:283)
at com.zegelin.cassandra.exporter.netty.HttpHandler.sendMetrics(HttpHandler.java:292)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:94)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:39)
at com.zegelin.cassandra.exporter.InternalMetadataFactory.localBroadcastAddress(InternalMetadataFactory.java:91)
at com.zegelin.cassandra.exporter.Harvester.globalLabels(Harvester.java:283)
at com.zegelin.cassandra.exporter.netty.HttpHandler.sendMetrics(HttpHandler.java:292)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:94)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:39)
at com.zegelin.cassandra.exporter.InternalMetadataFactory.localBroadcastAddress(InternalMetadataFactory.java:91)
at com.zegelin.cassandra.exporter.Harvester.globalLabels(Harvester.java:283)
at com.zegelin.cassandra.exporter.netty.HttpHandler.sendMetrics(HttpHandler.java:292)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:94)
at com.zegelin.cassandra.exporter.netty.HttpHandler.channelRead0(HttpHandler.java:39)

from cassandra-exporter.

Tigraine avatar Tigraine commented on July 28, 2024

Same issue here - tried it on Cassandra 4.1.3:

WARN  [cassandra-exporter-harvester-defer-0] 2023-07-31 14:10:36,620 Harvester.java:191 - Failed to register collector for MBean org.apache.cassandra.metrics:type=Connection,scope=10.132.0.58_7000,name=GossipMessageCompletedTasks.
java.lang.IllegalArgumentException: '10.132.0.58_7000' is not an IP string literal.
        at com.google.common.net.InetAddresses.formatIllegalArgumentException(InetAddresses.java:987)
        at com.google.common.net.InetAddresses.forString(InetAddresses.java:143)
        at com.zegelin.cassandra.exporter.MetadataFactory.endpointLabels(MetadataFactory.java:71)
        at com.zegelin.cassandra.exporter.FactoriesSupplier.lambda$connectionMetric$17(FactoriesSupplier.java:474)
        at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$withLabelMaker$0(FactoriesSupplier.java:73)
        at com.zegelin.cassandra.exporter.FactoriesSupplier$FactoryBuilder.lambda$build$1(FactoriesSupplier.java:99)
        at com.zegelin.cassandra.exporter.Harvester.lambda$registerMBean$0(Harvester.java:174)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)

from cassandra-exporter.

isaiasanchez avatar isaiasanchez commented on July 28, 2024

After this WARN the exporter stops giving results, at lease un my case:
curl http://localhost:9500/metrics
curl: (18) transfer closed with outstanding read data remaining

from cassandra-exporter.

sonman avatar sonman commented on July 28, 2024

The stop is related to #83 I guess.

from cassandra-exporter.

itskarlsson avatar itskarlsson commented on July 28, 2024

@sonman You are on the right track, although you could condense the patch to something like this.

This way only connection mbeans are affected. Although this will mean that one loses statistics if two nodes are connecting from different ports but the same IP. Which I suspect was the whole idea with including the ports to begin with on the Cassandra side. A small price to pay though as having two Cassandras on the same node doesn't seem like a common use case in production systems.

from cassandra-exporter.

julienlau avatar julienlau commented on July 28, 2024

when I try to compile the master branch I hit an error ! #117

from cassandra-exporter.

julienlau avatar julienlau commented on July 28, 2024

I tried to switch to the standalone to avoid this not an IP string literal error mode but I got another error:
WARN [cassandra-exporter-harvester-defer-0] 2023-11-21 13:51:04,746 Harvester.java:191 - Failed to register collector for MBean org.apache.cassandra.metrics:type=Connection,scope=10.1.1.1_7000,name=GossipMessageCompletedTasks.

I finally rolled back to using the old cassandra_exporter from criteo : it stills work with 4.1.3 despite not being actively maintained

from cassandra-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.