Flux as a Service... for free!

Flux as a Service... for free!

Running Fluxpipe with Docker on Fly.io

image.png

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

☝️☝️☝️ This is not an image ☝️☝️☝️



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!

image.png

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!

Did you find this article valuable?

Support qryn by becoming a sponsor. Any amount is appreciated!