38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
cask "datadog-agent" do
|
|
version "7.22.0-1"
|
|
sha256 "ceb52c36924959c6dc88c75f7f403361937ced94efaf9bbf70fbdd895bb81e21"
|
|
|
|
url "https://s3.amazonaws.com/dd-agent/datadog-agent-#{version}.dmg",
|
|
verified: "s3.amazonaws.com/dd-agent/"
|
|
appcast "https://s3.amazonaws.com/dd-agent/"
|
|
name "Datadog Agent"
|
|
desc "Monitoring and security across systems, apps, and services"
|
|
homepage "https://www.datadoghq.com/"
|
|
|
|
installer manual: "datadog-agent-#{version}.pkg"
|
|
|
|
uninstall quit: "com.datadoghq.agent",
|
|
launchctl: "com.datadoghq.agent",
|
|
pkgutil: "com.datadoghq.agent",
|
|
delete: [
|
|
"/Applications/Datadog Agent.app",
|
|
"/opt/datadog-agent",
|
|
"/usr/local/bin/datadog-agent",
|
|
]
|
|
|
|
zap trash: [
|
|
"~/.datadog-agent",
|
|
"~/Library/LaunchAgents/com.datadoghq.agent.plist",
|
|
]
|
|
|
|
caveats <<~EOS
|
|
You will need to update /opt/datadog-agent/etc/datadog.yaml and replace APIKEY with your api key
|
|
|
|
If you ever want to start/stop the Agent, please use the Datadog Agent App or datadog-agent command.
|
|
It will start automatically at login, if you want to enable it at startup, run these commands:
|
|
|
|
sudo cp '/opt/datadog-agent/etc/com.datadoghq.agent.plist.example' /Library/LaunchDaemons/com.datadoghq.agent.plist
|
|
sudo launchctl load -w /Library/LaunchDaemons/com.datadoghq.agent.plist
|
|
EOS
|
|
end
|