{"action":"created","issue":{"url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/1","repository_url":"https://api.github.com/repos/zegelin/cassandra-exporter","labels_url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/1/comments","events_url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/1/events","html_url":"https://github.com/zegelin/cassandra-exporter/issues/1","id":352882787,"node_id":"MDU6SXNzdWUzNTI4ODI3ODc=","number":1,"title":"Add support for JMX authentication","user":{"login":"vbatoufflet","id":598433,"node_id":"MDQ6VXNlcjU5ODQzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/598433?v=4","gravatar_id":"","url":"https://api.github.com/users/vbatoufflet","html_url":"https://github.com/vbatoufflet","followers_url":"https://api.github.com/users/vbatoufflet/followers","following_url":"https://api.github.com/users/vbatoufflet/following{/other_user}","gists_url":"https://api.github.com/users/vbatoufflet/gists{/gist_id}","starred_url":"https://api.github.com/users/vbatoufflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbatoufflet/subscriptions","organizations_url":"https://api.github.com/users/vbatoufflet/orgs","repos_url":"https://api.github.com/users/vbatoufflet/repos","events_url":"https://api.github.com/users/vbatoufflet/events{/privacy}","received_events_url":"https://api.github.com/users/vbatoufflet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T09:57:19Z","updated_at":"2018-08-22T17:17:47Z","closed_at":"2018-08-22T17:17:47Z","author_association":"NONE","body":"Hi,\r\n\r\nI did dig a little into the exporter code and it seems that's not possible to handle authentication with JMX.\r\n\r\nWhen I try to connect to a remote JMX instance requiring authentication I get:\r\n\r\n```\r\nException in thread \"main\" picocli.CommandLine$ExecutionException: Error while calling command (com.zegelin.prometheus.cassandra.Application@3ada9e37): java.lang.SecurityException: Authentication failed! Credentials required\r\n        at picocli.CommandLine.execute(CommandLine.java:924)\r\n        at picocli.CommandLine.access$700(CommandLine.java:104)\r\n        at picocli.CommandLine$RunLast.handle(CommandLine.java:1081)\r\n        at picocli.CommandLine$RunLast.handle(CommandLine.java:1049)\r\n        at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:957)\r\n        at picocli.CommandLine.parseWithHandlers(CommandLine.java:1240)\r\n        at picocli.CommandLine.call(CommandLine.java:1511)\r\n        at picocli.CommandLine.call(CommandLine.java:1435)\r\n        at com.zegelin.prometheus.cassandra.Application.main(Application.java:49)\r\nCaused by: java.lang.SecurityException: Authentication failed! Credentials required\r\n        at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticationFailure(JMXPluggableAuthenticator.java:211)\r\n        at com.sun.jmx.remote.security.JMXPluggableAuthenticator.authenticate(JMXPluggableAuthenticator.java:163)\r\n        at sun.management.jmxremote.ConnectorBootstrap$AccessFileCheckerAuthenticator.authenticate(ConnectorBootstrap.java:219)\r\n        at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)\r\n        at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)\r\n        at sun.rmi.transport.Transport$1.run(Transport.java:200)\r\n        at sun.rmi.transport.Transport$1.run(Transport.java:197)\r\n        at java.security.AccessController.doPrivileged(Native Method)\r\n        at sun.rmi.transport.Transport.serviceCall(Transport.java:196)\r\n        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)\r\n        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)\r\n        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683)\r\n        at java.security.AccessController.doPrivileged(Native Method)\r\n        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)\r\n        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)\r\n        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)\r\n        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162)\r\n        at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)\r\n        at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2430)\r\n        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:308)\r\n        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)\r\n        at com.zegelin.prometheus.cassandra.Application.call(Application.java:38)\r\n        at com.zegelin.prometheus.cassandra.Application.call(Application.java:20)\r\n        at picocli.CommandLine.execute(CommandLine.java:917)\r\n        ... 8 more\r\n```\r\n\r\nDo you think this feature could be added to this exporter?\r\n\r\nBest regards,\r\nVincent"},"comment":{"url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/comments/415109476","html_url":"https://github.com/zegelin/cassandra-exporter/issues/1#issuecomment-415109476","issue_url":"https://api.github.com/repos/zegelin/cassandra-exporter/issues/1","id":415109476,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTEwOTQ3Ng==","user":{"login":"zegelin","id":19296634,"node_id":"MDQ6VXNlcjE5Mjk2NjM0","avatar_url":"https://avatars3.githubusercontent.com/u/19296634?v=4","gravatar_id":"","url":"https://api.github.com/users/zegelin","html_url":"https://github.com/zegelin","followers_url":"https://api.github.com/users/zegelin/followers","following_url":"https://api.github.com/users/zegelin/following{/other_user}","gists_url":"https://api.github.com/users/zegelin/gists{/gist_id}","starred_url":"https://api.github.com/users/zegelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zegelin/subscriptions","organizations_url":"https://api.github.com/users/zegelin/orgs","repos_url":"https://api.github.com/users/zegelin/repos","events_url":"https://api.github.com/users/zegelin/events{/privacy}","received_events_url":"https://api.github.com/users/zegelin/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T17:17:47Z","updated_at":"2018-08-22T17:17:47Z","author_association":"OWNER","body":"Thanks for the report and for the PR. Looks good."}}
{"actor":{"display_login":"zegelin"}}