Comments (4)
Should we just disable the end-of-run checks of the source install script? @remh
from chef-datadog.
I had to write my own cookbook to do a source install because we use supervisor ourselves and datadog's packaging interferes with that, and since we use deb packages for deployment I can't have apt errors sitting out there.
Here's what I did to create a user and run the install script. Support added a "do not start agent" flag to be set in the environment, worked out well:
0 user "dd-agent" do
1 action :create
2 home "/opt/datadog"
3 system true
4 shell "/bin/bash"
5 supports :manage_home => true
6 end
7
8 bash "install_datadog" do
9 user "dd-agent"
10 cwd "/opt/datadog/"
11 environment "DD_API_KEY" => "YOUR_API_KEY", "DD_HOME" => "/opt/datadog/", "DD_START_AGENT" => "0"
12 code <<-EOH
13 sh -c "$(curl -L http://dtdg.co/dd-agent-source)"
14 EOH
15 creates "/opt/datadog/venv"
16 end
Then a quick upstart script if you're on ubuntu and you're good to go.
0 description "start and stop the datadog-agent provided by their install from source script"
1
2 respawn
3 respawn limit 15 5
4
5 start on runlevel [2345]
6 stop on runlevel [06]
7
8 script
9 chdir /opt/datadog
10 exec start-stop-daemon --start -c dd-agent --exec /opt/datadog/bin/agent
11 end script
Obviously this is all very rough draft, it should be using attributes for all the paths and variables, but, I wrote it quick just to test out the software trial.
from chef-datadog.
@asiegman Since the opening of this issue, we have released version 5.x of the Datadog Agent, which bundles a self-contained supervisor which no longer conflicts with any other installed supervisor.
With that, you'd likely no longer need the source install method.
from chef-datadog.
Closing out this issue, as there's packagers for systems that no longer interfere with other supervisors.
from chef-datadog.
Related Issues (20)
- Support custom MBean collection HOT 5
- SOLR Integration doesn't work when configured with Chef HOT 1
- Agent conflicts with Docker Registry on port 5000 HOT 1
- Breaking change introduced in version 4.10.0 - network monitoring HOT 2
- logs_agent_config attribute is ignored HOT 1
- Incorrect Hostname in datadog.yaml file HOT 4
- integration resource should notify a restart of the agent after installing a new version HOT 2
- Support cookbook renaming HOT 3
- undefined method `to_yaml' in newer versions of Chef HOT 1
- Chef Infra 18 deprecation warnings HOT 1
- Deprecation CHEF-25 HOT 3
- Support for UPSC HOT 2
- 2022 Linux Agent Key Rotation for someone using v4.10.0 HOT 3
- Windows system_probe commits missing from the latest datadog cookbook (4.12.0) HOT 1
- remove_dd_agent recipe does not remove the apt source nor datadog-signing-keys package HOT 1
- Could someone help me in resolving the error below which I am getting while chef is trying to install datadog agent on AWS Ubuntu host. HOT 7
- Consul Prometheus support missing
- [doc] Correct example in windows_service
- chef_handler dependency deprecated HOT 2
- [BUG] The datadog.process_agent.url attribute does not take datadog.site into account
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-datadog.