This is a command line utility that can be used to deploy a MVP "StopLights" Dashboard to a given Users Datadog Subscription from a template.
-
Tool queries PCF Ops Manager for the following:
cf-release string (e.g. cf-76553423523ab) job indexes/partitions from CF manifest
-
Reads template of PCF Stoplights Dashboard
-
Uploads a generated Datadog dashboard combining Ops Man vars & template
datadog-dashboard-gen -opsman_user=admin -opsman_passwd=blah -opsmanip=192.168.100.10 -ddapikey=243235r23435435345 -ddappkey=564758643636
-
Clone repo
git clone https://github.com/pivotalservices/datadog-dashboard-gen.git
-
Build binary
cd datadog-dashboard-gen go install
-
Run program to upload the Stoplights dashboard
$GOPATH/bin/datadog-dashboard-gen -opsman_user=<OPSMAN_USER> -opsman_password=<OPSMAN_PASSWORD> -opsman_ip=<OPSMAN_IP> \ -ddapikey=<DATADOG_API_KEY> -ddappkey=<DATADOG_APP_KEY>
-
Install ego
-
Run
ego
(template is located undertemplates/screen
)
ego -package datadog -o datadog/stoplights.go