Monitoring Camel-K applications on Openshift using the Fuse Console
The Red Hat Fuse Console is a web console based on HawtIO open-source software. The Fuse Console provides a central interface to examine and manage the details of one or more deployed Fuse containers. You can also monitor Red Hat Fuse and system resources, perform updates, and start or stop services.
Camel K is a lightweight integration framework built from Apache Camel to run natively on Kubernetes. It is specifically designed for serverless and microservices-based architectures. In this article, we will explore how you can monitor the integrations created using Camel-K using the Fuse Console.
Installing Fuse Console on Openshift
To install the Fuse Console on OpenShift 4. x, you can use the Fuse Console Operator provided in the OpenShift OperatorHub. To deploy the Fuse Console, you create an instance of the installed operator.
Let us first create a new namespace fuse-console-demo on openshift.
Let us now install the Red Hat Integration — Fuse Console in this namespace.
Once installed we will create an instance of hawtio.
The operator exposes a route for the console as below
You should now see the Fuse console up and running.
Creating a Camel K integration
Let us now define a simple integration for our test.
- from:
uri: "timer:tick"
parameters:
period: "5000"
steps:
- set-body:
constant: "Hello Yaml !!!"
- transform:
simple: "${body.toUpperCase()}"
- to: "log:info"
We have a simple route that prints the message in uppercase for every 60 seconds.
Deploying the Camel K integration with the Jolokia Trait
The Jolokia trait activates and configures the Jolokia Java agent. By enabling this trait, we can register the integration with the fuse console which we set up in step1.
For this,
kamel installkamel run YamlIntegration.yml --trait jolokia.enabled=true --trait jolokia.protocol=https
This should deploy the integration.
Monitoring Integration on Fuse Console
Once the integration is running, go back to the Fuse console. You should now see the integration show up there.
Click on connect to visualize the route diagram and monitoring information.
References: