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
  1. PLATFORM
  2. Integrations
  3. Grafana
  4. Tutorials

Mapping UUIDs to Display Names with Infinity Data Source

A Step-by-step guide on how to exchange UUIDs with human-readable names

PreviousOEE data with Infinity data sourceNextPower BI

Last updated 1 month ago

When querying data from the using the Infinity data source in Grafana, entities such as Sites, Machines, or Products are returned with their UUIDs instead of display names. For visualizations, human-readable names are more useful than raw UUIDs.

This tutorial walks you through the process of mapping Machine UUIDs to their corresponding names to create a clear and readable production run table.

1

Getting a List of Production Runs

Start by creating a new visualization and querying the endpoint to retrieve production orders along with their start and end times and machine information.

  1. Select the Infinity data source.

  2. Create a UQL query with the following configuration:

    • Type: JSON

    • URL: production-runs

  3. In the query editor, build the following UQL Query to extract relevant fields:

parse-json
| scope "data"
| project "production_order","end"=todatetime("end"), "start"=todatetime("start"), "machine"
  1. Click Refresh dashboard and enable Table view to inspect the results.

At this point, the table displays machine UUIDs rather than machine names

2

Query Machine Value Pairs

To map UUIDs to names, add a second query that fetches machine metadata.

  1. Inside the same panel, add a new UQL query pointing to the endpoint.

  1. Use the following UQL query to retrieve UUID-name pairs:

parse-json
| scope "data"
| project "machine"="uuid", "name"

Note: The UUID is renamed to machine to match the column in the first query. This is required for the join operation in the next step.

  1. Click Refresh dashboard to load the second query (Query B).

3

Perform a JOIN operation on both queries

The way to show the machine names is to join both queries over the machine UUID columns. A single join operation can be performed using the Grafana Transform . This transformation can only work if both columns have the same name.

  1. Open the tab Transform data

  2. Add a Join by Field transformation:

    • Mode: INNER

    • Field: machine (base field name)

This results in a joined table containing both the production run data and the corresponding machine names.

If you would like to polish your results, we recommend using the transform to rename, sort and deactivate columns.

ENLYZE Platform API
production-runs
machines
Join by Field
Organise fields by name
Query B