ENLYZE
🇬🇧 ENLYZE
🇬🇧 ENLYZE
  • Welcome to ENLYZE
  • Getting Started
    • Quickstart
  • Guides
    • Platform Configuration
    • Machine Setup
      • Variable Selection
      • Configuring OEE Data Collection
      • Machine Data Sheet Template
    • Connecting Booking Data
  • PLATFORM
    • Integrations
      • Grafana
        • Structure of the ENLYZE data sources
        • Tutorials
          • First steps with Platform Grafana
          • Grafana Basics for Process Monitoring
          • OEE data with Infinity data source
          • Mapping UUIDs to Display Names with Infinity Data Source
      • Power BI
        • Installing the ENLYZE Power BI Integration
        • Structure of the ENLYZE Power BI Connector
        • Tutorials
          • Getting Started with the ENLYZE Power BI Connector
          • Querying Time Series Data from Machine Variables
          • Querying Machine Productivity Metrics
          • Mapping UUIDs to Display Names
          • Calculating Aggregated Timeseries Data
  • EDGE
    • Overview EDGE Functionalities
    • SPARK Edge Device
    • ENLYZE EDGE
  • IT Security
    • IT Security
  • Resourcen
    • Glossary
Powered by GitBook
On this page
  • Create a visualization with Infinity
  • UQL query for OEE data
  • Query settings
  • Query parser
  • Transforming the data
  • Final visualization settings
  • Further use cases
  1. PLATFORM
  2. Integrations
  3. Grafana
  4. Tutorials

OEE data with Infinity data source

PreviousGrafana Basics for Process MonitoringNextMapping UUIDs to Display Names with Infinity Data Source

Last updated 1 month ago

In this tutorial, we will show you how to visualize OEE data from your production orders in Grafana. For this you need access to Platform Grafana and an ENLYZE Infinity data source. Please feel free to contact us for this.

The aim of this tutorial is to display the status of the current OEE of all machines as a gauge.

Create a visualization with Infinity

The first step is to create a new panel in a dashboard. It is important that the ENLYZE Infinity data source is selected as the data source. The data source may be named differently from our example.

UQL query for OEE data

Query settings

  • Parser: UQL

  • URL: production-runs

As the API data is not time series data, the query parameters must be adjusted so that the data matches the time period set for the dashboard. To do this, follow the steps below:

  • Click on “Headers, Request params”

  • Create a URL query parameter with Key: “start” and Value: “$__from”

Now only production orders whose start value is greater than or equal to the selected start of the dashboard's time range are displayed in the query. Similarly, the parameter Key: “end” and Value: “$__to” can be used to filter the query values based on the ending of the dashboard's time range. However, if the selected time interval always ends at the current time (e.g. with the “Last 7 days” setting), this parameter is usually not necessary.

Query parser

Before entering the query, the visualization should still show the message “No Data”. To fix this, you need the following UQL query.

parse-json
| scope "data"
| project "start"=todatetime("start"), "productivity", "machine"
| extend "score"="productivity.score"

Here we explain the components of the query:

  • parse-json: specifies that the query result should be parsed as JSON

  • scope “data”: unpacks the nested object “data” from the result JSON

  • project “start”=todatetime(“start”), “productivity”, “machine”: selects the columns “start”, “productivity” and ‘machine’, whereby “start” is converted from a string object to a date, which is useful for later calculations and time series displays

  • extend “score”=“productivity.score”: unpacks the nested object “productivity”, which contains both the value "score", i.e. the value for the OEE calculation, and “time_loss”, the lost production time due to a lack of availability, performance and quality of production in seconds. Only the “score” value is relevant here

The result of the query in tabular form should have the following format:

Transforming the data

The columns relevant for this tutorial are “machine”, so that we can group the OEE by machine, and “score”, the OEE values. The grouping of the values is realized by a “Group by” transformation:

  1. Click on the “Transform data” tab

  2. Click on "+ Add Transform"

  3. Select "Group by"

  4. Define “machine” as the field for the grouping (see image)

  5. Select “score” as the field for the aggregated value and “Mean” as the aggregation method.

The table now shows one row per machine and its average OEE value.

Final visualization settings

Now select the desired visualization type. In this case, we have opted for the gauge display. Under “Standard Options” the unit can be adjusted to percent and under “Thresholds” the color division of the display can be set.

The final panel shows the average OEE for the selected time period across all machines.

Further use cases

Based on the visualization shown here, further OEE representations can be created. This way, the performance, availability and quality values on which the OEE is based can also be monitored for each production order.

It is also possible to display the OEE over time:

After selecting the correct data source, you should see an input field with various options. For this tutorial, we will select the . Under “URL” we specify which of the data tables we want to retrieve. The OEE data is in the table, i.e. production orders. The following settings must therefore be changed:

In this tutorial, we will use the to write our query. UQL stands for Unstructured Query Language and combines elements from JSON, GraphQL, CSV and XML. Infinity data sources can also be used with other parsers.

You can find more information on how to customize the visualization .

UQL parser
ENLYZE API
production-runs
UQL parser
here