Analytics
9 min
an analytics flow is a series of connected processors that processes and analyzes data at the edge the analytics module enables you to create and manage analytics flows, run machine learning models, and connect generative ai providers core components processors a flow consists of a series of connected processors and requires at least one processor of each of the following types input retrieves data from a datahub topic, database, or generator available types include database batch input, datahub subscribe, generator, and inject see input processors docid\ pvn5qkg6ksmbjfi vyha for details function processes input data using built in kpis or statistical functions some function processors support multiple simultaneous inputs see key performance indicators docid\ f15c0gxnwror1gcwhwnwp and statistical functions docid 15iwjhscl3rduvtab1dje for details output writes function results to a datahub topic, database, file, or console available types include datahub publish, database output, file write, and stdout see output processors docid\ afvkrmbigxn2ovxhtu el for details connections processors connect using one of the following connection types events (individual data source) used for input/function and function/output connections the receiving processor reacts to each individual data value immediately values (combined data sources) used only for input/function connections the function processor waits for values from all connected input sources before reacting for example, if a function processor compares values from input processors a and b, it waits for a value from both before performing the comparison you can build a flow manually by adding and connecting processors, or use add flow to be guided through processor selection in the create flow dialog, with connections added automatically see create an analytics flow docid\ ewmyjslrbisgimpdgq82a and add processors and processor connections docid\ v37iaolfgyw 7glazjt1n for details analytics flows can be imported and exported as json files machine learning models analytics supports tensorflow saved models for prediction, classification, and anomaly detection models must be in savedmodel format and compressed as a zip file before upload a saved model contains a complete tensorflow program, including weights and computation two processor types work with ml models tensorflow processor feeds time series data to a saved model tensorflow images processor feeds image data to a saved model see machine learning models docid 8i6vaeyatev2sqagkgtsn for details ai models the ai models feature lets you connect generative ai (llm) providers to analytics supported providers include openai, cloudflare ai gateway, openai assistants, grok, ollama, google gemini, nvidia, and anthropic, though only specific options may be supported in a given release each connection requires a valid api key, endpoint url, and model id for the selected provider see ai models docid\ wpy1bci1y2gxjtzfavdm9 for details flow groups flow groups are containers for organizing analytics flows on the instances canvas a group can contain one or more flows groups default to a locked state when saved, preventing other users from making changes you can pin a group as the default view on the canvas note empty flow groups cannot be deleted from the group list to remove an empty group, perform a system reboot see analytics flow groups docid 4fvspr2ygpdovbxdziylc for details how analytics flows work a flow moves data in one direction, from input processors to function processors to output processors input processors retrieve data and pass it to function processors via connections function processors apply kpis or statistical calculations to the incoming data output processors write the results to a datahub topic, database, file, or console the connection type determines when a function processor runs an events connection triggers the function processor each time a new value arrives from the connected input a values connection holds processing until values have arrived from all connected input sources, then triggers the function processor by default, a function processor passes only the function result to the output processor, dropping input fields such as device id and timestamp enable toggle passthrough on a function processor to pass the original input data through alongside the function result analytics ui the analytics module includes three pages instances the main canvas for building and managing flows includes a debug panel for viewing the live output of input and function processors models contains two sections, ai models for connecting generative ai providers and tensorflow models for uploading machine learning models variables view analytics variables and their current values filter by name, data type, or value important you may see the following error message when working with analytics "http failure response for /analytics/v2/version 0 unknown error" if you see this message, disable any ad blockers your browser may have limitations and considerations all three processor types required a valid flow must include at least one input, one function, and one output processor tensorflow gpu requirements to use ml processors, your computer must meet tensorflow gpu requirements https //www tensorflow\ org/install/gpu if it does not meet these requirements, ml specific processors are not available for flow building ml model file size the maximum upload size for a model file is 50 mib (52 43 mb) debug panel scope the debug panel cannot display output from output processors output processors publish data immediately upon receipt once published, the data is no longer available in the ui analytics guides review analytics guides docid\ xrlqsbhj0 rdauedlzy54 to see how to leverage different analytics capabilities and functions access analytics to access analytics log in to litmus edge from the navigation panel, select analytics at the top right, choose between the classic and new ui the following shows the new ui next steps analytics guides docid\ xrlqsbhj0 rdauedlzy54 analytics flows and processors docid\ xuohhgbpbuh0npti1xtwx analytics flow groups docid 4fvspr2ygpdovbxdziylc machine learning models docid 8i6vaeyatev2sqagkgtsn ai models docid\ wpy1bci1y2gxjtzfavdm9 input processors docid\ pvn5qkg6ksmbjfi vyha output processors docid\ afvkrmbigxn2ovxhtu el statistical functions docid 15iwjhscl3rduvtab1dje key performance indicators docid\ f15c0gxnwror1gcwhwnwp