Comments (8)
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.
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.
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.
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.
The stop is related to #83 I guess.
from cassandra-exporter.
@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.
when I try to compile the master branch I hit an error ! #117
from cassandra-exporter.
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)
- Export metric on https with ssl HOT 2
- Connection reset exceptions HOT 1
- Unable to compute when histogram overflowed
- Problems with IPv6 addresses
- JSON output is invalid HOT 1
- cassandra exporter (0.9.12) still do not export metrics of cassandra 4.0.5 HOT 7
- Generate a docker image for every release in DockerHub
- cassandra-exporter agent 0.9.10 fails to start HOT 1
- does it work with datastax 6.8 HOT 3
- Release (0.9.11) not found HOT 1
- cannot compile the master branch
- Could it be force to be a generic bean/jmx exporter? HOT 3
- Export Raw Histogram Data If Possible HOT 3
- Exceptions with cassandra 3.11.7 HOT 1
- Feature: Export keyspace replication factor metrics
- Does not seem to work with Cassandra Version 3.11.7 HOT 1
- Broken pipe IOException every 5 minutes HOT 7
- Broken pipe IOException during compaction HOT 5
- Feature: support for plugglabe metrics suppliers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandra-exporter.