visionary-agent

command
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 34 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

visionary-agent: the host agent

This is not Visionary itself. visionary-agent is a small helper you install on a machine you want to watch. It sends that machine's numbers to a Visionary server you already run. It has no dashboard, stores nothing, and does nothing without a server to send to.

You want Use
The Visionary server and dashboard the Docker image ghcr.io/styropyr0/visionary (Run the server)
To watch a whole machine: its drives, processes, services, Docker containers and SSH logins this agent, installed on that machine
To watch your app (requests, errors, its own CPU and memory) an SDK in the app (SDKs)

There is no Docker image of the agent. It runs on the machine itself as a systemd service, because it reads the machine's processes, logs and container engine directly. An older ghcr.io/styropyr0/visionary-agent image from before v0.5.0 is no longer built or updated.

What it reports

Every 15 s it samples CPU, memory, swap, disks, network and load; once a minute it sends them with:

  • the machine's details, every drive, the top processes and failed systemd services (shown in System);
  • every Docker or Podman container: state, health, restarts, CPU and memory against its limits, network, disk, and OOM kills, crashes and failed health checks (shown in Containers);
  • SSH logins, sudo, newly opened ports, pending updates and reboots (shown in Security, Linux only).

Install

On the machine to watch, with your server's URL and a server ingest key (Settings → API keys):

curl -fsSL https://raw.githubusercontent.com/styropyr0/Visionary/main/deploy/agent/install.sh \
  | sudo VISIONARY_URL=https://visionary.example.com VISIONARY_KEY=<server key> sh

The installer downloads visionary-agent-linux-amd64 or -arm64 from the latest GitHub Release. Its settings are in the main README.

Build

go build ./cmd/visionary-agent

Documentation

Overview

Command visionary-agent watches one machine (a database box, a worker, a bastion) and reports it to a Visionary server over HTTPS, so hosts without an instrumented app show up too. It never touches the database: the server stores what it sends.

Every 15 s it samples the host's CPU, memory, disk and network with the Go SDK's sampler; once a minute it posts those samples with the inventory, the top processes, every real mount, failed and watched systemd units, and the security findings since the last report (SSH logins, sudo, listening ports, pending updates). With Docker or Podman on the host it also reports every container: its state, CPU, memory, network and disk use, and restarts, OOM kills, exits and failed health checks. The wire format is internal/agentapi.

VISIONARY_URL=https://visionary.example.com VISIONARY_KEY=... visionary-agent

It runs on the host itself (deploy/agent/install.sh), not in a container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL