Skip to main content

Flux as a Service... for free!

Running Fluxpipe with Docker on Fly.io

Updated Markdown
Flux as a Service... for free!

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!

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

Flux as a Service... for free!