HG-CLI
Our recommended command line tool that's fun and easy-to-use - 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 and OpenTelemetry with more features on the roadmap, like Telegraf Plugin Configuration.
Once you've installed HG-CLI, you can run it as a TUI (Terminal User Interface) or in CLI (Command Line Interface) mode. See our list of commands below for all available installation options and command examples.
See our handy blog article HERE for step-by-step details on how to get this up in running in just a couple of minutes.
Installation
You can find all current releases on GitHub.
Quick Install
Run this command in your terminal (Linux/MacOS/Windows).
This will install the latest released version's binaries into your /usr/local/bin directory.
Homebrew
You can use Homebrew to tap and install the HG-CLI packages for MacOS/Linux. This method supports AMD64/ARM64 architectures and the official GitHub tap can be found HERE.
Add tap:
Install:
Linux
Locate the official release assets HERE, and below are some example installation commands:
Ubuntu/Debian
RedHat/CentOS/Fedora
Windows (PowerShell)
Locate the official release assets HERE, and below are some example installation commands:
[Optional] Add to system PATH:
Golang
Install using go install
Manual (Binaries)
To manually install, download a preferred version releases page (that matches your OS & ARCH), extract and move the binary file into a desired install location.
Example:
Perform Checksum
Optional Step
Download the checksum.txt file from the releases listed assets.
HG-CLI Commands
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:
--api-key (required)
--plugins (plugins to be added during installation)
--config (config path for updating apikey - required)
--list (list available monitoring agents)

Metrics and Visualizations
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.* or otel.* metrics have been sent to your account, a Telegraf/OpenTelemetry dashboard will be automatically created and can be located in your HG account (Dashboards ⇒ Telegraf/OpenTelemetry). 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 a message to support@metricfire.com
If you don't already have a Hosted Graphite account, you can start a 14-day free trial here.
You can also schedule a product demo here to speak with a knowledgeable member of our team who can provide support and advice on getting up and running quickly.
Last updated