HG-CLI (recommended)
A fun and easy-to-use command line tool for installing and configuring agents in your systems.
Contents
Our HG command line tool is an interactive way to install an agent on your system, without ever needing to touch a configuration file! This tool currently supports Telegraf installation, with more agents to be added in the future (like OpenTelemetry).
Once you've installed HG-CLI you can run it in TUI or CLI mode, and you can see our list of commands for all available options and examples.
Locate the official release assets HERE, and below are some example installation commands:
Ubuntu/Debian (AMD64)
RedHat/CentOS/Fedora (AMD64)
You can use Homebrew to tap and install the HG-CLI packages for MacOS. This method supports both AMD64/ARM64 architecture and the official GitHub repository can be located HERE.
Add tap (optional):
Install:
Locate the official release assets HERE, and below are some example installation commands:
AMD64:
ARM64:
Add to system PATH (optional):
Once HG-CLI is installed, you can run it as a TUI application, or in CLI mode (for automated installs). Below are all available options and command examples for using this tool.
Run the interactive TUI application (recommended):
Run it in CLI mode with the default configuration:
CLI mode for a custom install - to specify which plugins you want:
CLI mode to update an API key in an existing config (telegraf):
To uninstall an agent (telegraf):
Available flags for CLI mode:
--apikey (required)
--action (install, update-apikey)
--agent (telegraf)
--install (default, custom)
--plugins (if custom install)
--config (config path for updating apikey)
Once you have run the HG-CLI and installed an agent, the terminal output will show you that the installation was successful, which plugins were enabled, where your configuration file is located, and the command needed to start the service (required for collecting and forwarding metrics to your HG account).
Once the agent service has been started, you'll be able to locate your system metrics in our Metrics Search UI (with the telegraf prefix). Once telegraf.* metrics have been sent to your account, a Telegraf dashboard will be automatically created and can be located in your HG account (Dashboards ⇒ Telegraf). This auto-dash offers a great starting point and can be customized further!
If you need help enabling additional plugins or have feedback on the HG-CLI tool, please send us a message: support@metricfire.com
Last updated
Was this helpful?