kamon-io / kamon-influxdb Goto Github PK
View Code? Open in Web Editor NEWKamon InfluxDB Integration
Home Page: http://kamon.io/backends/influxdb
License: Other
Kamon InfluxDB Integration
Home Page: http://kamon.io/backends/influxdb
License: Other
Hi,
I'm trying kamon-akka
with kamon-influxdb
(both 0.6.7
) with akka
2.4.16
and I'm getting this error at startup.
What could I be missing?
Uncaught error from thread [kamon-akka.actor.default-dispatcher-4] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[kamon]
java.lang.NoSuchMethodError: io.netty.util.internal.PlatformDependent.newAtomicIntegerFieldUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
at org.asynchttpclient.netty.NettyResponseFuture.<clinit>(NettyResponseFuture.java:52)
at org.asynchttpclient.netty.request.NettyRequestSender.newNettyResponseFuture(NettyRequestSender.java:311)
at org.asynchttpclient.netty.request.NettyRequestSender.newNettyRequestAndResponseFuture(NettyRequestSender.java:193)
at org.asynchttpclient.netty.request.NettyRequestSender.sendRequestWithCertainForceConnect(NettyRequestSender.java:129)
at org.asynchttpclient.netty.request.NettyRequestSender.sendRequest(NettyRequestSender.java:107)
at org.asynchttpclient.DefaultAsyncHttpClient.execute(DefaultAsyncHttpClient.java:216)
at org.asynchttpclient.DefaultAsyncHttpClient.executeRequest(DefaultAsyncHttpClient.java:184)
at org.asynchttpclient.BoundRequestBuilder.execute(BoundRequestBuilder.java:35)
at kamon.influxdb.AsyncHttpClient.post(InfluxDBClient.scala:38)
authentication {
user = "my-username"
password = "my-password"
}
In addition documentation can refer to protocol
for specifying http
/ https
/ ....
The README and online documentation provide code snippets for including the 1.0.1
version of the dependency, whereas the latest version is 1.0.2
.
It took me hours of debugging crashes because only HTTPS is supported, and alghough I was specifying protocol = "https"
, this setting was ignored without me knowing.
As part of getting a 2.12 release in place, I think it'd be best to swap out Spray in favor of Akka HTTP since Spray is at end-of-life and Kamon primarily uses Akka as its only backbone across the modules.
I have a WIP branch but would like to hear input from the community on this change.
I am trying to include kamon with my spring-boot project using kamon-annotations package. But I am not sure about backend setup for metrics reported via kamon. The tests in module only cover scala, can I please get help with setup for java based application?
It would be nice to upgrade to Kamon 1.x, but I am using this reporter which still required Kamon 6.7.x.
We are not able to setup https protocol.
I had working solution with local deployment of influxdb and setting done via application.conf. However now I have deployed influxdb in secured container which uses https for communication, I get an error for https not supported by kamon:
[ERROR] [10/02/2017 09:31:04.235] [kamon-akka.actor.default-dispatcher-2] [akka://kamon/user/influxdb-metrics-sender] Protocol https is not supported by Kamon InfluxDB Client
akka.actor.ActorInitializationException: akka://kamon/user/influxdb-metrics-sender: exception during creation
followed by
Caused by: java.lang.UnsupportedOperationException: Protocol https is not supported by Kamon InfluxDB Client
Here is my configuration:
kamon {
metric {
tick-interval = 10 second
}
influxdb {
hostname = "influxdb.foo.com"
max-packet-size = 1024
database = "mydb"
protocol = "https"
application-name = "foo-service"
hostname-override = foo
percentiles = [50.0, 70.5]
}
modules {
kamon-log-reporter.auto-start = yes
kamon-influxdb.auto-start = yes
}
trace {
level-of-detail = simple-trace
}
}
As reported at #22 (comment) at the moment it is not possible to use SSL client certificates.
Please make kamon.influxdb.InfluxDBReporter#buildClient() protected
.
Thanks!
It seems that configuration like the following:
kamon {
influxdb {
authentication {
user = "my-user",
password = "my-password"
}
}
}
No longer works.
I guess there is missing configuration of Authenticator when building the client:
https://github.com/kamon-io/kamon-influxdb/blob/master/src/main/scala/kamon/influxdb/InfluxDBReporter.scala#L136
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.