The last three macOS versions are supported on both Intel (AMD64) and Apple Silicon (ARM-based: M1, M2, etc).
This install approach automatically downloads dependencies and installs the collector as a service on macOS. Priviliged (root) access is needed.
- As
sudo
, run the following in your shell. If you do not specify an optional token, edit the configuration file after install completes. If you set an OpAMP key, which is a project-scoped API Key, certain collector remote management features will be enabled.
-
export CLOUDOBS_TOKEN='your-cloudobs-access-token' export OPAMP_KEY='your-opamp-api-key' sudo sh -c "$(curl -fsSlL https://github.com/lightstep/sn-collector/releases/latest/download/install-macos.sh)" install_macos.sh --ingest-token $CLOUDOBS_TOKEN --opamp-key $OPAMP_KEY
-
Review the collector configuration installed in
/opt/sn-collector/config.yaml
. The collector will automatically start running with the default configuration. -
To uninstall, run:
-
sudo sh -c "$(curl -fsSlL https://github.com/lightstep/sn-collector/releases/latest/download/install-macos.sh)" install_macos.sh --uninstall
-
On the Releases page, download the appropriate collector
*.tar.gz
fordarwin
and your processor type. Apple Silicon processors use thearm
binary. -
Extract the
*.tar.gz
archive. -
Validate the collector runs and the bundled configuration is valid.
-
./sn-collector validate config.yaml