The InfraSonar client is a command-line application which can be used to manage assets for a container. The tool has two main features. One is to read all assets from a container to YAML or JSON output. Zones labels and collectors are included. The other feature of this tool is to apply a YAML or JSON file to InfraSonar. These two features combined allow you to easily add new assets as well as managing existing assets for a container.
1. Download the latest version:
If your platform is not listed above, refer to the build from source section for instructions.
2. Extract the contents of the archive using a tool like tar. Here's an example for Linux (amd64):
tar -xzvf infrasonar-linux-amd64-1.0.4.tar.gz3. Install:
The following command will install infrasonar in path and enables bash completion if supported by the OS.
sudo ./infrasonar installMac OS specific:
If you get the error message:
Apple could not verify “infrasonar” is free of malware that may harm your Mac or compromise your privacy.
Ensure you downloaded the binary from a trusted source (https://github.com/infrasonar/infrasonar-cli/)
Manually remove the "quarantine" flag that macOS attaches to the file. Open your Terminal and run:
xattr -d com.apple.quarantine ./infrasonar4. Create a new configuration:
infrasonar config newFinally, give your configuration a name and provide a token
Name: foo
Token: ***********
Clone this repository and make sure Go is installed.
CGO_ENABLED=0 go build -o infrasonar