Before You Begin
This 15-minute tutorial shows you how to create key performance indicators (KPIs) in the Oracle Internet of Things (IoT) Fleet Monitoring Cloud Service application that'll help you track and monitor vehicles. In this tutorial, you use a simulator application that creates a simulated vehicle and generates its data.
Background
Oracle IoT Fleet Monitoring Cloud Service is a cloud-based service that lets you gain real-time visibility into vehicle location, operational costs, vehicle use, and driving behavior.
Vision Corporation, a manufacturer for tablets and smartphones, wants to optimize the supply chain management of its display pickers, glue dispensers, and display mounters. The company is using a new type of glue that will avoid temperature fluctuations and improve the reliability of displays.
To avoid production delays, the company implemented an Oracle IoT Fleet Monitoring Cloud Service application to track glue shipments from the warehouse to the factory. The application is configured to generate alerts (vehicle departure and speed), trigger incidents (vehicle breakdown), and display vehicle status.
What Do You Need?
Create a Simulation Model in the Oracle IoT Digital Twin Simulator Application
In this section, create a simulation model in the Oracle IoT Digital Twin Simulator application. The application simulates a vehicle that generates on-board device data, and then sends the data to the Oracle IoT Fleet Monitoring Cloud Service application.
- Sign in to the Oracle IoT Digital Twin Simulator application at
https://your Oracle IoT Cloud Service instance name/ds.
- On the Simulations Dashboard page, click Create a Simulation Model
.
- On the Select an option page, click Truck.
- On the Truck page, click Create New Device
.
- On the popup, click Create.
- On the Truck page, click the Running icon to start the device. Note the ID of the new device.
Create a Vehicle Type
In this section, you create a vehicle type to group vehicles with similar attributes. Grouping vehicles with similar attributes can simplify performance management.
- Sign in to your instance of Oracle IoT Cloud Service at
https://your Oracle IoT Cloud Service instance name/ui
. - Click Menu
and then click Applications.
- Select the Oracle IoT Fleet Monitoring Cloud Service application.
- Click Device Model.
- Click Choose Device Model
.
- Select the ora_obd2_device_model device model and click Done.
- Sign in to your instance of Oracle IoT Fleet Monitoring Cloud Service at
https://your Oracle IoT Cloud Service instance name/fm
. - Click Menu
, and then click Configuration.
- Click Vehicle Type
.
- Click Create New Vehicle Type
.
- On the Create New Vehicle Type page, in the Details section, enter or select the following values:
Name:KenworthVehicleType
Make:Kenworth
Model:T680
Year: 2017.
- In the Sensor Attributes section, select all the pre-defined sensor attributes, click Select Device Model, select ora-obd2-device_model, and then click Select.
- Click Save and then Back.
Register a Vehicle
In this section, you register a simulated vehicle that you created in the Oracle IoT Digital Twin Simulator application.
- Click Menu
, and then click Configuration.
- Click the Uploads
tab, and then click the Vehicle Upload button.
- In the Upload: Vehicle CSV DATA page, click Choose File, browse to the folder where you saved
vehiclet680.csv,
select it, click Open, and then click Upload. - Click Go to Vehicle Listing and verify that your vehicle is listed.
- Click Menu
, and then click the Vehicles
tab on Fleet page.
- Click the Vehicles
tab.
- From the Vehicles list, select Kenworth-T680.
- Click the Edit
icon.
- In the Sensor attributes section, click on select all the attributes checkbox.
- Click Link Device.
- On the Select Device popup, click your simulated device and click Select.
- Notice that in the Sensor attributes section, in the table, the device ID column is populated with the information of the device you selected.
- Click Save and then Back.

View Vehicle Data
- On the Vehicles page, locate the vehicle Kenworth-T680 and then click View
.
- Click Back.
The Vehicle: Kenworth-T680 page displays the speed, engine RPM, and engine temperature from the simulated vehicle.

Use the Visual Expression Builder to Create a KPI
In this section, you create a custom KPI (metric) using the Visual Expression Builder to define an expression to calculate the average of the engine temperature of a vehicle.
- Click Menu
and then click Configuration
.
-
On the Configuration page, click Metric
, and then Create Metric
.
- On the Create Metric Type page, in the Details section, enter or select the following values:
Name:Avg Engine Temperature
Entity Type: KenworthVehicleType
Calculate: Calculate on Demand for All Vehicles - In the Formula editor, click Click here to insert formula.
Description of the illustration veb_1.png - On the popup, select the aggregation Average.
- Click the arrow between the parentheses to show the Formula menu popup and select Property, then Sensor and then enginecoolanttemp.
- To verify that the expression is valid, click Validate Formula.
- Click Save and then Publish. Wait a few minutes after clicking that button for the KPI to be available.
- Click Back.

You can build your operation using the elements in the Formula editor, or click Advanced to directly edit the SQL-like expression.
Add the KPI to the Dashboard
- Click Menu
and then click Fleet.
- On the Fleet page, click the Fleet KPI Dashboard
icon located in the toolbar.
- On the Fleet Metrics page, click the editMetricGroup
icon.
- Click Add New Metric
icon.
- On the popup select the following values:
- Type: KPI
- Entity: KenworthVehicleType
- Metrics: Avg Engine Temperature
- Color: Ocean Blue
- Click Save.
- On the metrics bar, notice the Avg Engine Temperature KPI, you can move the position of the KPI by clicking the Ellipsis
icon.
Description of the illustration kpi_avg_engine_temp.png - Click Save.
Want to Learn More?
- Use Key Performance Indicators to Monitor the Efficiency of Fleet Operations in Using Oracle Internet of Things Fleet Monitoring Cloud Service