Skip to main content

tuna monitor

Interact with monitors.

Ping, run and manage monitors. New monitors are created in the dashboard.

In an interactive terminal opens a TUI with live monitor status, details, pause and delete. Otherwise prints this help: use the subcommands below.

Guide with examples: Monitors in the CLI.

Usage
tuna monitor [flags]
FlagDescription
--api-key stringYour tuna.am api key (env TUNA_API_KEY).

Subcommands​

CommandDescription
tuna monitor deleteDelete a monitor with its history.
tuna monitor eventsShow the last events of a monitor.
tuna monitor execExecute a command with monitoring.
tuna monitor getShow a monitor with its last events.
tuna monitor pausePause a monitor.
tuna monitor pingSend a telemetry ping.
tuna monitor resumeResume a paused monitor.
tuna monitor statusView monitor status.

tuna monitor delete​

Delete a monitor with its history.

Usage
tuna monitor delete ID [flags]
FlagDescription
-y, --yesSkip the confirmation prompt.

Also accepts the flags of tuna monitor.

tuna monitor events​

Show the last events of a monitor.

Usage
tuna monitor events ID [flags]
FlagDescription
-n, --limit intHow many events to show. Default: 20.

Also accepts the flags of tuna monitor.

tuna monitor exec​

Execute a command with monitoring.

Usage
tuna monitor exec KEY -- [COMMAND] [ARGUMENTS] [flags]
Examples
tuna monitor exec ABCD -- /path/to/file
tuna monitor exec ABCD --host=agent1 -- /path/to/file
tuna monitor exec ABCD --no-stdout -- /path/to/file --arg1 --arg2 --arg3
FlagDescription
--host stringReport host.
--no-stdoutDisable sending stdout/stderr to Tuna.

Also accepts the flags of tuna monitor.

tuna monitor get​

Show a monitor with its last events.

Usage
tuna monitor get ID

Also accepts the flags of tuna monitor.

tuna monitor pause​

Pause a monitor.

Usage
tuna monitor pause ID

Also accepts the flags of tuna monitor.

tuna monitor ping​

Send a telemetry ping.

Usage
tuna monitor ping KEY [flags]
Examples
tuna monitor ping ABCD
tuna monitor ping ABCD --state=ping
tuna monitor ping ABCD --state=ping --host=agent1
tuna monitor ping ABCD --state=fail --message="Error: Job was not successful"
tuna monitor ping ABCD --state=finish
FlagDescription
--host stringReport host.
--message stringReport message.
--state stringReport state. Default: ping.

Also accepts the flags of tuna monitor.

tuna monitor resume​

Resume a paused monitor.

Usage
tuna monitor resume ID

Also accepts the flags of tuna monitor.

tuna monitor status​

View monitor status.

Usage
tuna monitor status [KEY]
Examples
tuna monitor status ABCD

Also accepts the flags of tuna monitor.

Global flags work too.