Is there a way to send microprofile metrics to graphite directly? The only guide with Quarkus I've found is this https://quarkus.io/guides/microprofile-metrics. I'm looking for something similar to what I'm using with Spring Boot https://micrometer.io/docs/registry/graphite. Do we have the same thing but in the Quarkus context (with native image support)?
The micrometer extension is recommended for metrics, and it has support for Graphite via a quarkiverse extension:
<dependency>
<groupId>io.quarkiverse.micrometer.registry</groupId>
<artifactId>quarkus-micrometer-registry-graphite</artifactId>
</dependency>
That's the quarkus issue that people can follow and give feedback https://github.com/quarkusio/quarkus/issues/10525
Related
I have an app in Springboot and need to integrate org.eclipse.microprofile.reactive.Messaging. Don't look any documentation of these and I don't know if is possible. I try to use the org.eclipse.microprofile.reactive.Messaging.Emitter and configuration but don't work. Any know how can use? Thank you.
I try to inject the quarkus-smallrye-reactive-messaging-kafka dependency in my proyect but not work.
I am trying to use Grafana for visualization. I have a Spring-boot application which is integrated with PostgreSQL. I want to fetch the data from Postgres and show it in Grafana.
So far, I have found maven dependency for grafana which is as below :
<!-- https://mvnrepository.com/artifact/com.appnexus.grafana-client/grafana-api-java-client -->
<dependency>
<groupId>com.appnexus.grafana-client</groupId>
<artifactId>grafana-api-java-client</artifactId>
<version>1.0.5</version>
</dependency>
Can anyone please help with the tutorials examples?
If you want to just visualized the PostgreSQL database metrics on grafana then you can use this plugin.
However if you want to view the Spring Boot related metrics ( http response status, performance, jvm stats, connection pool stats etc.) then a more popular way is to setup Prometheus as the time series datastore and metrics scraper from where graphana can generate the visualization. For detailed information on setup of each component you can refer to this or this article.
There are even ready made grafana dashboards for Spring Boot like this. Of course this too uses Prometheus.
We use Apache CXF in our application with jax-rs to build REST Api. As of now, there is no documentation about the various endpoints available and is deployed on Tomcat 8.5 server.
I have done some R&D on how to find a solution. I understand that Swagger can be used.
But, I did not find enough documentation to user swagger with Apache CXF.
I understand that these type of questions are prohibited in the site. At the same time, I am not sure which chat room to use for this purpose.
Any information on this would help me a lot.
Depending on the CXF version that you are using, I would suggest to use OpenApiFeature (OpenAPI is newer than Swagger) as described here: http://cxf.apache.org/docs/openapifeature.html
You can also find multiple sample projects with Swagger or OpenAPI here: https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs
I’m trying to use some Kafka API with Kafka 1.0 and I find myself baffled at a fundamental level.
There’s a class AdminClient that’s been around since 0.10 or so. It has a method describeTopics I want to try. So I set up an Eclipse project and construct an AdminClient and point it to my Kafka cluster and all is well.
Until I examine the AdminClient class a little more closely and find it is a Scala module and quite different from the published Java API. Among other things describeTopics is nowhere to be found.
So I downloaded Kafka-1.0.0-src.tgz asnd poked around. I found core/src/main/scala/admin/AdminClient.scala which matches what I saw in Eclipse. Then I found clients/src/main/java/org/apache/clients/admin/AdminClient.java which matches the API doc.
I have the feeling there’s something I’m missing. How can I get to the API I see in the documentation?
It’s right here: https://github.com/apache/kafka/blob/1.0/clients/src/main/java/org/apache/kafka/clients/admin/AdminClient.java, which is in the kafka-clients artifact: http://search.maven.org/#artifactdetails%7Corg.apache.kafka%7Ckafka-clients%7C1.0.0%7Cjar
The AdminClient you are seeing comes from the core Kafka artifact. The new AdminClient API is available in the Kafka clients library (with consumer and producer) so you should use the following dependency in your pom.xml :
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>1.0.0</version>
</dependency>
The Scala implementation is the server side of the Admin functionality which runs in the Kafka Brokers which are also written in Scala. The java implementation is the client side which should match the docs because it’s the client API that should be documented.
I have an application using Apache CXF with a lots of SOAP services implemented. So, i would like to use the "service registry" concept and then, i´d hear about UDDI, but i dont know how to implemented that.
Is Apache CXF already composed by an API to deploy UDDI engine or should i fix another library to do that?
Take a look at JUDDI:
http://juddi.apache.org/
which is a UDDI service. The latest version is written to JAX-WS and is tested by default with CXF.
To add, jUDDI has a neat way to automate the registration of web services using annotations and a servlet startup listener.
Source: http://svn.apache.org/repos/asf/juddi/trunk/juddi-examples/uddi-annotations/