Name: datadog-agent-boshrelease
Description: Datadog agent from source!
Created: 2017-01-18 09:54:53.0
Updated: 2017-04-20 18:30:57.0
Pushed: 2017-05-26 14:11:36.0
Homepage: null
Size: 60
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Upload the release to Bosh director
Create a runtime-config.yaml
file:
ases:
me: datadog-agent
rsion: 1
ns:
me: dd-agent
bs:
name: dd-agent
release: datadog-agent
operties:
dd:
use_dogstatsd: yes
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tags: ["pe", "bosh", "bosh:bosh-exp"]
:
ner: pe
ail: platform-engineering@springernature.com
Upload runtime-config to Bosh Director: bosh update runtime-config runtime-config.yaml
Re-deploy the deployments to automatically add the agent.
You can also add the release to the manifest and deploy it
After cloning this repository, run:
submodule init
submodule update
to update the gohai submodule. Gohai is a binary (golang) program used by Datadog Agent to collect
basic information from the server. There is a script bosh_prepare
which also runs the git
submouldes commands and downloads all sources to the blobs
directory:
sh_prepare
It will get all sources specified in the packages/*/spec files (commented out) for local development, then you can create the release (final) with:
sh_final_release
which will upload the tarball to github and make the new blobs public available in the S3 bucket
bosh_prepare
ensures that gohai
git submodule is populated in src/gohai
. In order
to avoid including a git package -only needed because of go get
command to download
the dependencies- the script runs go get
locally to get all dependencies, so it is
assuming you have go
installed. After those dependencies were downloaded, the
binary package can be compiled, but a new folder src/gohai/src
appears, because of
that bosh will complain about untracked git changes, but there are two workarounds:
bosh create release --force
.gitmodules
file a config parameter for ignoring dirty state of the submodule: ignore = dirty
Here, the second option is used.
Springer Nature Platform Engineering, Jose Riguera Lopez (jose.riguera@springer.com)
Copyright 2017 Springer Nature
Apache 2.0 License