Monitoring Camel-K applications on Openshift using the Fuse Console

Sadhana Nandakumar
3 min readDec 16, 2021

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:

https://camel.apache.org/camel-k/1.7.x/traits/jolokia.html

https://access.redhat.com/documentation/en-us/red_hat_fuse/7.10/html/managing_fuse_on_openshift/fuse-console-setup-openshift4#fuse-console-install-openshift4-operatorhub

--

--

Sadhana Nandakumar

Sadhana is a Sr Technical Product Marketing Manager specializing in Salesforce Platform