In this section we integrate all the different pieces to show information flowing from the demostration website all the way through to Elasticsearch and Kibana.
Note
|
Instructions assume all the different components have been installed as per here. It’s also assumed that the link:scripts/shell-setup.sh |
Open the test app in a window using the route printed by this
echo "http://$(oc get route quarkus-transaction-crud -o jsonpath='{ .spec.host }')/"
To be able to see events that come in from the Debezium Connector setup a shell with a kafka consumer. Open a shell and run the following command:
oc exec -c kafka my-cluster-kafka-0 -n debezium-cdc -- /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic sampledb.sampledb.transaction
Display the activity window of the integration.
-
Open the Fuse Online window
echo "https://$(oc get route syndesis -n debezium-cdc -o jsonpath='{ .spec.host }')"
-
Start the integration if it hasn’t been already
-
After a few minutes the integration should start up. Then click view and then select the Activity tab
-
The refresh button can be used to see events processed by the integration
Show the stats visualized out of the Debezium Connector
-
Open the Grafana Dashboard
echo "https://$(oc get route grafana-route -n debezium-monitoring -o jsonpath='{.spec.host}')"
-
Select the Debezium MySQL Connector dashboard
-
Update the polling on the dashboard to be as frequent as possible
For this, we want to be able to show the log entries in Elasticsearch that make it through our Fuse Online integration. One of the best ways to visualize this is to use the Kibana instance that was created as part of the Cluster Logging Installation
-
Open the kibana dashboard by opening the route below:
echo "https://$(oc get route kibana -n openshift-logging -o jsonpath="'{ .spec.host }')/
-
Select Management and then select Index patterns
-
Press Create Index and then on the screen that appears, clear the Index Pattern text box and type in
transaction*
for find the indexes that are created by our Fuse Online Integration. Then press Create
-
Upon clicking create, you should see a screen with the fields of the index. Verify these are the correct fields
FIXME
-
Go to the demo app, purchase an item less than $1000
-
Notice change in Grafana Dashboard
-
Notice the change data event in kafka consumer
-
Refresh the Fuse Online activity
-
Look at the details of the Fuse Online activity
-
Open the entry corresponding to this purchase and show that Elasticsearch did not get called as purchased item is less than $1000
FIXME
-
Go to the demo app, purchase an item greater than $1000
-
Notice change in Grafana Dashboard
-
Refresh the Fuse Online activity
-
Look at the details of the Fuse Online activity
-
Open the entry corresponding to this purchase and show that Elasticsearch did get called as purchased item is more than $1000
-
Show new entry under transaction log in Kibana
-
Show that the amount and transactionNo matches that in the kafka window