Skip to content

A Grafana panel plugin for monitoring process stability over time. Supports Xbar-R, Xbar-S, and XmR charts with automatic calculation of control limits.

License

Notifications You must be signed in to change notification settings

KensoBI/spc-chart

Repository files navigation

SPC Chart

Welcome to the KensoBI SPC Chart panel for Grafana. This plugin enables you to easily create statistical process control (SPC) charts, including Xbar-R, XbarS, and XmR charts. It automatically calculates and displays control limits, with options to add your own custom limits. Additionally, you can group your samples into subgroups and aggregate them using methods such as moving range, range, mean, or standard deviation.

Main

Available Options

  • Xbar-R, XbarS, and XmR Charts: Create various types of SPC charts with a single click.

  • Automatic Control Limits: LCL (Lower Control Limit), UCL (Upper Control Limit), and mean are automatically calculated and displayed.

  • Custom Limits: Add your own limits for more tailored analysis.

  • Subgrouping: Group your samples into subgroups for analysis.

  • Aggregation: Aggregate your data by moving range, range, mean, or standard deviation.

  • Alerting Support: Support for Grafana alerting with alert states and annotations displayed on the chart.

  • Threshold Visualization: Configure and visualize alert thresholds alongside SPC control limits.

Alerting and Custom Annotations

The SPC Chart panel supports Grafana alerting with annotations:

  • Alert States: The panel displays alert states directly on the chart, making it easy to see when alerts are firing.

  • Alert Annotations: Historical alert events are shown as annotations on the chart timeline, providing visual context for when process control issues occurred.

  • Threshold Configuration: Configure alert thresholds in the panel's field configuration to define when alerts should trigger. These thresholds are displayed alongside your SPC control limits.

  • SPC-Based Alerts: Create alert rules based on SPC control limits (UCL, LCL) to automatically detect when your process goes out of statistical control. For example:

    • Alert when values exceed the Upper Control Limit (UCL)
    • Alert when values fall below the Lower Control Limit (LCL)
    • Alert on trends or patterns that indicate special cause variation
  • Create custom annotations directly on the chart.

To create an alert based on SPC limits, configure an alert rule in Grafana that uses the same query as your SPC chart, and set threshold conditions based on your calculated control limits.

Documentation

Please see the full panel documentation at KensoBI Docs.

NOTE: The plugin comes with sample provisioned dashboards. Build and start the plugin to see them.

Development

For information on how to set up a development environment and build the plugin see DEVELOPMENT.md.

Getting Help

If you have any questions or feedback, you can:

Your feedback is always welcome!

License

This software is distributed under the Apache License.

Notes

Copyright (c) 2024 Kenso Software

About

A Grafana panel plugin for monitoring process stability over time. Supports Xbar-R, Xbar-S, and XmR charts with automatic calculation of control limits.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •