← 返回命令列表

Linux command

sampler 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch a dashboard with a config file

sampler -c [config.yml]

Launch with environment variables

sampler -c [config.yml] -e "[VAR=value]"

Launch with multiple environment variables

sampler -c [config.yml] -e "[VAR1=value1]" -e "[VAR2=value2]"

说明

sampler executes shell commands at configurable intervals and visualizes their output as runcharts, sparklines, barcharts, gauges, and text boxes in the terminal. It supports trigger-based alerts (visual, sound, terminal bell, or arbitrary shell commands) and works with databases, message queues, SSH, and JMX out of the box.

参数

-c _FILE_
Path to the YAML configuration file.
-e _VAR=VALUE_
Set environment variables for the dashboard.

FAQ

What is the sampler command used for?

sampler executes shell commands at configurable intervals and visualizes their output as runcharts, sparklines, barcharts, gauges, and text boxes in the terminal. It supports trigger-based alerts (visual, sound, terminal bell, or arbitrary shell commands) and works with databases, message queues, SSH, and JMX out of the box.

How do I run a basic sampler example?

Run `sampler -c [config.yml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _FILE_ do in sampler?

Path to the YAML configuration file.