I’m having some trouble installing node_exporter on MacOS via Homebrew. Running manually works fine with: /usr/local/opt/node_exporter/bin/node_exporter_brew_services. But running as a homebrew service does not. Any ideas what’s wrong here? I’m familiar with homebrew but have never used its services feature before.
admin@lai-macresolve1 ~ % brew services restart node_exporter
Stopping `node_exporter`... (might take a while)
==> Successfully stopped `node_exporter` (label: homebrew.mxcl.node_exporter)
==> Successfully started `node_exporter` (label: homebrew.mxcl.node_exporter)
admin@lai-macresolve1 ~ % brew services list --debug
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaAPILoader): loading node_exporter from API
==> /bin/launchctl list homebrew.mxcl.node_exporter
{
"StandardOutPath" = "/usr/local/var/log/node_exporter.log";
"LimitLoadToSessionType" = "Aqua";
"StandardErrorPath" = "/usr/local/var/log/node_exporter.err.log";
"Label" = "homebrew.mxcl.node_exporter";
"OnDemand" = true;
"LastExitStatus" = 19968;
"Program" = "/usr/local/opt/node_exporter/bin/node_exporter_brew_services";
"ProgramArguments" = (
"/usr/local/opt/node_exporter/bin/node_exporter_brew_services";
);
};
Name Status User File
node_exporter error 19968 admin ~/Library/LaunchAgents/homebrew.mxcl.node_exporter.plist