Flux as a Service... for free!
Running Fluxpipe with Docker on Fly.io


Flux as a Service ... for free!
In our previous article we squeezed Flux(lib) into a stand-alone, serverless-ready function serving query results in milliseconds. But not everything has to be serverless!
Fluxpipe-server is also available as static binary and Docker image.
Let's use it to launch a free forever Fluxpipe instance using fly.io
TLDR; Here's a Live Demo

If you're a Fly.io user, all it takes is one command:
fly launch --image ghcr.io/metrico/fluxpipe:latest --now
Easy. Follow the prompts to name your instance and select a region:
? App Name (leave blank to use an auto-generated name):
? Select region: lax (Los Angeles, California (US))
? Would you like to deploy now? (y/N)
Done! You're up and running!

Run fly open to open your deployed app in a browser.
Flux Play
Fluxpipe embeds a lightweight UI adapted from ClickHouse Play (Thanks, Alexey!) ready to use with the Flux language
๐ Grafana
Next, configure your Fluxpipe as an InfluxDB datasource in Grafana and go crazy!

โฌ Curl
Last but not least, you can use curl or any other tool to query the Fluxpipe CSV API
curl -XPOST https://fluxpipe.fly.dev/api/v2/query -sS \
-H 'Accept:application/csv' \
-H 'Content-type:application/vnd.flux' \
-d 'import g "generate" g.from(start: 2022-04-01T00:00:00Z, stop: 2022-04-01T00:03:00Z, count: 3, fn: (n) => n)'
It's that simple! ๐
Enjoy your free forever Fluxpipe instance running on Fly!
For more details visits the Project Github โญ โญ โญ
Did this get you excited? Join our team, we're hiring!
About the author
Co-Founder and CEO at QXIP, makers of HOMER, HEPIC, QRYN and contributors to many other OSS projects in the monitoring and observability space






