import StepFlow from ‘@site/src/components/docs/StepFlow.tsx’; import UseCaseExample from ‘@site/src/components/docs/UseCaseExample.tsx’; import ScreenshotFigure from ‘@site/src/components/docs/ScreenshotFigure’; import Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’;
There are two ways to get started, and both end in the same place: a running StreamPipes with live data on a dashboard.
docker run starts the complete platform in a single container, with a demo plant already set up. Best for a first look, a demo or a workshop.Whichever you pick, the second half of this page walks you through building your own first flow: an adapter, a dataset, a chart and a dashboard. That part takes about ten minutes and needs no external machine or broker.
You need Docker on Linux, macOS or Windows. On macOS and Windows that means Docker Desktop, with at least 4 GB of memory assigned to it. The Compose installation also needs Docker Compose, which comes with Docker Desktop and with recent Docker Engine packages. Use a current Chrome, Firefox or Edge.
:::info Install Docker Go to docs.docker.com and follow the instructions for your operating system. Check the installation with docker run hello-world before you continue. :::
The all-in-one image runs CouchDB, InfluxDB, NATS, the StreamPipes core, the IIoT extensions and the UI in one container. On first start it seeds a fictional company with simulated machines, so you see live data without connecting anything.
docker run --rm -p 80:80 apachestreampipes/all-in-one:dev
admin@streampipes.apache.org and the password admin.Dashboards, for example CNC Machining below, then follow the links from the asset on the home page to the adapters and pipelines behind it.The dev tag follows the nightly build of the development branch, which is what this documentation describes. For the newest release use latest, or a version tag such as 0.99.0 to pin one.
The demo is a water works and an automotive supplier plant. Every machine is a simulated adapter that alternates between normal operation and an alarm phase every 30 seconds, which is what the analytics pipelines react to.
Home shows the counters, the asset table and both sites on a map (toggle Map).Dashboards has an overview per site, detail dashboards per area, and Shop Floor Display, a dashboard in slide view for a screen on the floor.Charts contains about 40 charts across most chart types, from KPI tiles and gauges to histograms and heatmaps.Pipelines has the persist pipelines plus a few analytics pipelines: pump overheating detection, tool wear warnings, NOK joint detection, failed leak tests.Assets holds the plant structure with sites, areas, labels and links to everything above.Adapters lists the simulated machines. Open CNC Machining Centres to see a JavaScript transformation script that derives spindle power and a tool wear class before the events reach any pipeline.Everything else works like a regular installation. You can add adapters, build pipelines and create charts. Stop the container with Ctrl+C. With --rm the data is discarded; drop --rm to keep the container and start it again later with docker start.
:::note Good to know Port 80 busy? Map another one with -p 8080:80 and open http://localhost:8080. Want an empty platform without the demo? Add -e SP_DEMO_SEED=false. Want a different admin password from the start? Add -e SP_INITIAL_ADMIN_PASSWORD=change-me. All options are described in the installer README. :::
The all-in-one image keeps its data inside the container and runs everything on one host. For anything you want to keep, use the Compose installation below.
The commands below download the nightly installer into a new streampipes-dev directory and start the default setup with NATS as the message broker. It needs curl and Docker with Compose v2. The nightly build follows the development branch, so things can change between builds.
mkdir streampipes-dev && cd streampipes-dev curl -fsSL --fail-early --remote-name-all "https://raw.githubusercontent.com/apache/streampipes/dev/installer/compose/{docker-compose.yml,.env.example,configure,start}" sh start
mkdir streampipes-dev && cd streampipes-dev curl.exe -fsSL --fail-early --remote-name-all "https://raw.githubusercontent.com/apache/streampipes/dev/installer/compose/{docker-compose.yml,.env.example,configure,start.cmd}" .\start.cmd
The first start pulls the images, which takes a few minutes, and generates an .env file with the credentials in the installer directory. Open http://localhost and sign in as admin@streampipes.apache.org with the SP_INITIAL_ADMIN_PASSWORD from that file. To start StreamPipes again later, open the directory and run sh start on Linux or macOS, or .\start.cmd in Windows Command Prompt.
Keep .env with the deployment backups. You can edit it directly and run docker compose up -d when the required values are set. When restarting or upgrading, reuse the original credentials and Compose project name. For the stable release, use the commands on the download page and the 0.99.0 quick start.
:::danger If StreamPipes does not come up The most common reason is an underpowered Docker setup. Check that Docker has at least 4 GB of memory, that all containers are running (docker compose ps) and read the logs of the backend container (docker compose logs backend). If the first start failed halfway, stop the stack with docker compose down, remove the volumes if you do not need the data, and start again. :::
This part is the same for both options. You create one adapter with the built-in machine data simulator, persist its events into a dataset, create a chart on the dataset and place the chart on a dashboard. If you started the all-in-one image, the demo already contains adapters like this one; build your own anyway, it is the fastest way to understand how the parts fit together.
<StepFlow steps={[ { title: ‘Connect a data source’, body: ‘Create one adapter in Connect so StreamPipes starts receiving events.’, }, { title: ‘Persist the events’, body: ‘Enable persistence when you start the adapter, so the events become a dataset.’, }, { title: ‘Check the dataset’, body: ‘Confirm that records arrive and the schema matches what you connected.’, }, { title: ‘Create a chart’, body: ‘Query the dataset and show it as a time series.’, }, { title: ‘Place the chart on a dashboard’, body: ‘Turn the chart into a view you can open any time.’, }, ]} />
Connect and click New adapter.Machine Data Simulator.Flow Rate sensor and leave the wait time at 1000 ms, one event per second.Next. The preview shows live sample events. No transformation script is needed, so click Next again.Configure schema, select the timestamp row and set its scope from Measurement to Timestamp.Next to open the adapter settings.If an adapter you expect is not in the list, install the extension first under Configuration > Extensions.
Flow rate test.Persist events. You can keep the suggested dataset name or enter your own.Start adapter.Persistence is the step that turns a live stream into data you can chart later. Without it you still have a stream for pipelines, but no history. Once the adapter runs, the live preview on its details page shows events arriving.
Datasets.This is the checkpoint. If data reaches the dataset, the rest is straightforward. If the count stays at zero, go back to the adapter and check that it is running and that persistence was enabled.
Charts and create a new chart.Raw as the query type.Select all, then check the preview.Visualization tab and choose Time Series Chart.Dashboards and create a new dashboard.That is the complete first flow: a source, its history, a chart and a view. Everything else in StreamPipes builds on these four things.
Pipelines work on the live stream before it is stored or shown: filter noise, calculate a KPI, detect a threshold, send a notification or write to an external system. Open Pipelines, start a new pipeline, drop your stream and a processor such as Numerical Filter on the canvas and end with a Dataset sink. The Pipelines guide explains the editor; the all-in-one demo has several finished pipelines to look at.
Configuration > Extensions.Persist events was not enabled.docker logs shows where it is.