Sampler

Open source

Terminal tool that runs shell commands on an interval and visualizes the output as live charts with alerts, configured through a YAML file.

Open-source alternative to

sampler.dev
Sampler homepage screenshot
GitHub stars
15k
Last 30 days
+8(+0%)
Last commit
2 yr ago
Repository age
7 years
Version
v1.1.0
Licence
GPL-3.0
Self-hosted
Yes

About Sampler

Sampler is a command-line tool for executing shell commands, visualizing their output and raising alerts, all configured with a simple YAML file. The idea is that anything you can measure with a shell command can be shown as a live chart in the terminal, whether that is database changes, message queue depth or the completion of a deployment script. It is aimed at developers and operators who want quick insight without standing up a monitoring stack.

Using it is a three-step process: define the commands in a YAML configuration, run sampler with that file, and adjust the size and position of components on the screen. The README says it is not an alternative to full-scale monitoring systems, but a development tool for cases where setting up Prometheus and Grafana would be overkill. There are no servers, databases or deployments, and it can run locally while still collecting telemetry from multiple remote machines.

It can be installed with Homebrew, MacPorts, Linux package managers, Chocolatey (Windows support is experimental), or Docker. A system sound library is needed on Linux for audible alert tones. Sampler is written in Go and licensed under GPL-3.0.

Key features

  • Runs shell commands at set intervals
  • Live terminal charts of command output
  • Alerts including sound triggers
  • YAML-based configuration
  • No server or database required
  • Gathers metrics from multiple machines

Good fit for

  • Watching a database or queue from the terminal
  • Getting notified when a deployment script finishes
Built with
Go tools
Tags
monitoring
terminal
cli
visualization
shell
alerting
golang
yaml

Sampler: questions and answers

What is Sampler used for?
Sampler is a terminal tool that runs shell commands on an interval and visualizes the output as live charts with alerts, configured through a YAML file. It is a good fit for watching a database or queue from the terminal and getting notified when a deployment script finishes.
Is Sampler open source?
Yes. Sampler is open source under the GPL-3.0 licence. Its source code is on GitHub at sqshq/sampler and is written mainly in Go.
Is Sampler free?
Yes. Sampler is open source, so the software itself is free to use.
What is Sampler an alternative to?
Sampler is an open-source alternative to Systems. Other open-source alternatives to Systems include Habitica, ArangoDB and OpenEMR.
Is Sampler actively maintained?
The most recent commit to Sampler was on 22 February 2024, and the latest release is v1.1.0, published on 24 December 2019. The project has 15k stars on GitHub, with 8 added in the last 30 days.

Open-source alternatives to Sampler

See all

SaaS alternatives to Sampler

See all