--- pdfexport: true alias: tutorials-grafana-tutorial timetoread: true tutorial: full glightbox: false description: "Learn to use Grafana dashboards for production monitoring and analysis" --- # Grafana Tutorial This tutorial provides an overview of using Grafana dashboards, including how to navigate and modify their properties. If you require more advanced configurations, see [Grafana Dashboards (Developer Portal)](https://developer.criticalmanufacturing.com/explore/guides/customizations/analytics/grafana/). The Grafana dashboards are available under the **Business Intelligence** menu and to access them, you can filter by Type **Dashboards**, as shown below. ![Dashboards Type](images/dashboards_type.png) ## Use Case In this tutorial, the **Yield Loss Information** dashboard is used as an example. This dashboard is designed to support production and analysis of **Material** Efficiency. With this dashboard, you can: * **Monitor key performance indicators (KPIs)** - Track critical metrics to quickly assess overall production performance. * **Analyze Material Yield Losses** - Identify trends and patterns in **Material** efficiency, helping to pinpoint areas for process improvement. * **Visualize trends over time** - Use historical data to understand fluctuations in yield and anticipate potential issues. This use case is ideal for production supervisors, process engineers, and manufacturing analysts who need actionable insights to optimize processes, reduce waste, and make data-driven decisions in real time. ### Data source This dashboard retrieves its information from the Data Warehouse (DWH). Specifically, it uses the [[dataplatform-dataset-materiallossbonus|Material Loss Bonus]] Data Set and the [[business-intelligence-cubes-material-movement]] cube, which provide insights into material flows, production output, and yield losses. For your own dashboard, you can access these data sources in the **Data Platform** menu. To explore all available options, see [Supported Data Sources](https://developer.criticalmanufacturing.com/explore/guides/customizations/analytics/grafana/#supported-data-sources). ### Dashboard Layout This dashboard is structured around 3 visualization panels, each designed to provide key insights and a clear overview of your data. The layout ensures that essential information is easily accessible, promoting efficient monitoring and analysis. #### Panel 1: Overview * **Yield per Step** - Displays the yield for each step. * **The Top Loss Reasons by Quantity** - Highlights the top loss reasons by quantity. * **The Top Loss Reasons by Occurrences** - Measures the percentage of occurrences for each loss reason. * **Losses Over Time by Step** - Shows daily loss quantities. ![Overview](images/overview_dashboard.png) #### Panel 2: KPI Performance * **Yield Loss** - Monitors Material inefficiency during production. * **Total Loss Quantity** - Measures the amount of Material lost during production. ![KPI Performance](images/kpi_performance.png) #### Panel 3: Material Yield Loss History * **Material Yield Loss History** - Presents the historical record of daily Material Loss transactions. ![Material History](images/material_history.png) ### Page Properties Each panel in the dashboard includes a set of options that allow you to view, share, and analyze the data behind it. To access these options, select the **:material-dots-vertical:** button in the top-right corner. This opens a menu with several useful actions for exploring and managing your dashboard. ![Menu](images/menu.png) === "View" Opens the panel in a zoomed-in view for easier interaction. ![View](images/view.png) === "Share" Opens the sharing options, you can choose to **Share Link**, **Share Embed**, or **Share Snapshot**. According to your choice, a corresponding window will appear: ![View](images/share_link.png) === "Explore" Opens an interactive view showing the selected **Data source** and the **Query** used in the panel. You can modify and run the query, view results in real time, and use the **Query Inspector** to examine request and response details. ![Explore](images/explore.png) === "Inspect" Opens a view where you can choose to **Inspect Data** — to view the raw data returned by the query and check if it contains results — or **Panel JSON**, which shows the JSON definition of the panel, useful for debugging or exporting configurations. ![Inspect JSON](images/inspect_json.png) === "More" Opens a menu where you can perform additional actions on the panel, such as **Copy**, **Create a New Alert Rule**, or **Get Help**. ### Editing the Dashboard The **Edit Analytics View** wizard can be accessed from the Dashboard page within **Business Intelligence**. 1. In this wizard, you can modify all non-system properties, including Description, Data Group, and Keywords. The Name of the dashboard cannot be changed. 2. Select **Save** to apply your changes. ![Edit Dashboard](images/edit_dashboard.png) ### Demonstration: From Production to Dashboard This section illustrates how data updates in real time during production. Consider the example of a **Material** moving through the production process — first being tracked in, then tracked out, with a **Loss Reason** recorded. After these operations, the dashboard automatically updates to reflect the changes, and you can see how the new data appears instantly. {% set video_id = 'b8f90a5dbb14f35b894da54c8ec62db8' %} {% include-markdown 'includes/cloudflare_stream.md' %} This example highlights how real production data feeds the dashboard, allowing you to monitor performance, identify issues, and make informed decisions to optimize the production process. ### Expected Outcome With this dashboard, you can now monitor **Material** efficiency in real time and track Yield Loss patterns throughout the production process. It also allows you to identify the main causes of losses, analyze performance deviations, and take data-driven actions to improve overall **Material** Yield. This example illustrates a sample use case, and serves as a starting point for your own dashboards, customized to your specific data and business needs.