DataDog/datadog-firehose-nozzle-release

Name: datadog-firehose-nozzle-release

Owner: Datadog, Inc.

Description: BOSH release for datadog-firehose-nozzle

Forked from: cloudfoundry-attic/datadog-firehose-nozzle-release

Created: 2017-04-11 21:15:08.0

Updated: 2018-04-27 17:10:57.0

Pushed: 2018-04-27 17:10:58.0

Homepage: null

Size: 261

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

datadog-firehose-nozzle-release

This is a BOSH release for the datadog-firehose-nozzle, which transports logs from Loggregator to Datadog.

Building the Nozzle

First, you will need to grab all the submodules.

git submodule update --init --recursive.

Second, you will need to grab the firehose-nozzle golang dependencies. The Datadog Firehose Nozzle uses glide to manage its dependencies. If you want to build your own bosh release, you will need to run ./prepare. That will install glide, if needed, and then install all the dependencies under vendor/ in the datadog firehose nozzle submodule under src.

Then, all you will need to do is run bosh prepare, and everything will be bundled up for you!

Deploying the Nozzle

For a general guide to deploying nozzles, see here.

This nozzle assumes you have a Cloud Foundry deployed with a UAA client for the datadog nozzle. Configuration for the UAA client should look something like the following.


ients:
datadog-firehose-nozzle:
  access-token-validity: 1209600
  authorities: doppler.firehose,cloud_controller.admin_read_only,openid,oauth.approvals
  authorized-grant-types: client_credentials,refresh_token
  override: true
  scope: doppler.firehose,cloud_controller.admin_read_only,oauth.login
  secret: datadog-password

Once a Datadog client is registered in UAA, you are ready to deploy the nozzle. The instructions here assume you are using the Ruby based Bosh CLI and have this deployed on Bosh Lite.

If you are using Bosh Lite

First, update bosh-lite/stub.yml with your Datadog API key. Note that the client_secret under the uaa section in properties will need to match whatever password you set for the UAA client above.

Once the stub.yml reflects all the correct credentials, generate a manifest with:

ripts/make_manifest_spiff bosh-lite/stub.yml
If you are not using Bosh Lite

If you are not usin Bosh Lite, your deployment will require more customization. If you look at the current templates, you'll get a good sense of what you'll need to do in order to deploy the firehose.

For an example manifest, check out ./manifests/examples/example_manifest.yml

You are now ready to deploy:

 deploy

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.