Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for cassandra mbean(/org.apache.cassandra.net:type=FailureDetector) #2567
Comments
|
Also, "/org.apache.cassandra.db:type=StorageService" is needed. |
|
In the meantime, you should be able to use the jolokia input. |
|
Is that metric supported by jolokia? I get the error
|
|
So whats the story on this? I'm running into the same issue with org.apache.cassandra.db metrics... |
|
I think this input should be deprecated in favor of the jolokia2 input. I would also like to add an example configuration for Cassandra with the jolokia2 input, if someone can contribute one it would be appreciated. |
|
Here is the config I'm using, but it's not working:
I'm getting the error:
|
|
How long does |
|
Sorry, it doesn't return at all. But changing from https to http does:
It's worth noting I'm not running a standalone jolokia agent but jolokia is running from within the cassandra JVM itself. Would this require using jolokia2_proxy? If so, what would the [[inputs.jolokia2_proxy.target]] url be set to? |
|
Furthermore, why are only two metric types supported? I tried building the binary by hacking in another
|
|
The agent jar and agent jolokia is ran from within the same JVM as Cassandra, so it sounds like you have the right combination. The proxy variation is used when running the jolokia proxy as a separate process. Once you have the jolokia agent running and that url responds, you will be able to read any of the values with the jolokia2 plugin. |
|
When using the jolokia2 input, no errors are showing in the logs and no metrics are written to influxDB. Running |
|
If you attach a file with the output of |
With more testing, I was able to get this working by updating the config to use |
|
It looks like we actually need to figure out the POST data for a request to |
|
@Internaught Everything is working alright then? |
|
Yeah all good here, I've dropped the cassandra plugin in favor of jolokia2_agent |
|
Okay, when I get a chance I am planning to mark the cassandra plugin deprecated and convert the metrics in the README to an example jolokia2 config. |
|
Cassandra input was marked deprecated in 1.7. |
Bug report
If I added mbean(/org.apache.cassandra.net:type=FailureDetector) in telegraf configuration, so it print out, because it only support org.apache.cassandra.metrics mbean.
2017/03/24 17:51:00 I! Unsupported Cassandra metric [/org.apache.cassandra.net:type=FailureDetector], skipping
Then, could you support org.apache.cassandra.net mbean?
Relevant telegraf.conf:
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/cassandra/cassandra.go#L270-L280
System info:
[Include Telegraf version, operating system name, and other relevant details]
Steps to reproduce:
Expected behavior:
Actual behavior:
Additional info:
[Include gist of relevant config, logs, etc.]