forked from pivotal-cf/docs-dynatrace-fullstack-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstalling.html.md.erb
More file actions
197 lines (171 loc) · 9.34 KB
/
installing.html.md.erb
File metadata and controls
197 lines (171 loc) · 9.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
---
title: Installing and Configuring Dynatrace Full-Stack Add-on for PCF
owner: Partners
---
This topic explains how to install and configure the Dynatrace Full-Stack Add-on for Pivotal Cloud Foundry (PCF).
## <a id='create-mfest'></a> Create the Dynatrace Manifest
Follow these steps to create the Dynatrace manifest for your deployment:
1. Create a Dynatrace manifest file called `runtime-config-dynatrace.yml`, using the code below as a template to get started.
<pre>releases:
\- {name: dynatrace-oneagent, <strong>version</strong>: 1.0.4}<br>
addons:
\- name: dynatrace-oneagent-addon
jobs:
\- <strong>name</strong>: dynatrace-oneagent
release: dynatrace-oneagent
include:
stemcell:
\- <strong>os</strong>: ubuntu-trusty
\- <strong>os</strong>: ubuntu-xenial
exclude:
lifecycle: errand
jobs:
- {name: smoke-tests, release: cf}
- {name: push-apps-manager, release: push-apps-manager-release}
- {name: deploy-notifications, release: notifications}
- {name: deploy-notifications-ui, release: notifications-ui}
- {name: push-pivotal-account, release: pivotal-account}
- {name: deploy-autoscaling, release: cf-autoscaling}
- {name: register-broker, release: cf-autoscaling}
- {name: nfsbrokerpush, release: nfs-volume}
- {name: bootstrap, release: cf-mysql}
- {name: rejoin-unsafe, release: cf-mysql}
- {name: broker-registrar, release: cf-mysql}
- {name: deregister-and-purge-instances, release: cf-mysql}
- {name: smoke-tests, release: cf-mysql}
- {name: install-hwc-buildpack, release: hwc-buildpack}
properties:
dynatrace:
<strong>environmentid</strong>: <environmentid>
<strong>apitoken</strong>: <token>
###
# optional properties below
###
# Replace with your Dynatrace Managed URL, including the environment ID.
# An example URL might look like the following
<strong>apiurl</strong>: https://{your-managed-cluster.com}/e/{environmentid}/api
# Set to 'all' if you want to accept all self-signed SSL certificates.
sslmode: all
# Specify a direct download URL for Dynatrace OneAgent.
# If this propery is set, BOSH will download OneAgent from this location.
downloadurl: https://direct-download-url-for-agent
# Specify the proxy to be used for communication.
proxy: https://your-proxy-url
# Specify in which hostgroup the VMs in this deployments belong
hostgroup: example_hostgroup
# Define host tags for the VMs in this deployment
hosttags: landscape=production team=my_team
# Define custom properties for the VMs in this deployment
hostprops: Department=Acceptance Stage=Sprint
# Enable cloud infrastructure monitoring mode.
# Set this to 1 to activate it
infraonly: 0
# Enable validation of the download via certificate
# Set this to true to active it
validatedownload: false<br>
\# optional: extra addon configuration for Windows cells
\- name: dynatrace-oneagent-windows-addon
jobs:
- name: dynatrace-oneagent-windows
release: dynatrace-oneagent
include:
stemcell:
\- <strong>os</strong>: windows2012R2
properties:
dynatrace:
<strong>environmentid</strong>: <environmentid>
<strong>apitoken</strong>: <token>
# All of the optional properties for the Linux addon shown above (for example, apiurl, hostgroup) can also be used here.
</pre>
1. Replace the values listed in the template as follows:
* `releases: - version`: Specify the version number of your Dynatrace Full-Stack Add-on for PCF download from Pivotal Network.
* `jobs: - name`: Do not change the name of this job. It must be `dynatrace-oneagent` for Linux VMs.
* `include: stemcell - os<`: Do not change the OS type.
* `environmentid`: Replace with your Dynatrace environment ID.
* `apitoken`: Replace with your PaaS token from the Dynatrace UI.
* `apiurl`: Replace with your Dynatrace Managed URL, including the environment ID. An example URL might look like the following: `https://{your-managed-cluster.com}/e/{environmentid}/api`
1. (Optional) The add-on supports additional configuration properties:
* `sslmode`: Set to `all` if you want to accept all self-signed SSL certificates.
* `downloadurl`: Specify a direct download URL for Dynatrace OneAgent. If this propery is set, BOSH will download OneAgent from this location.
* `proxy`: Specify the proxy to be used for communication.
* `hostgroup`: Specify hostgroup for VMs in this deployment.
* `hosttags`: Specify host tags for VMs in this deployment.
* `hostprops`: Specify custom properties for VMs in this deployment.
* `infraonly`: Set to `1` to enable cloud infrastructure monitoring mode. This disables all deep process monitoring.
* `validatedownload`: Set to `true` to enable validation of the download via certificate.
1. If you also want to deploy Dynatrace to Windows Diego cells, configure a second add-on section for the `dynatrace-oneagent-windows` job. The properties for `environmentid`, `apitoken`, and `apiurl` remain the same as with the normal Linux configuration.
* `jobs: - name`: For Windows cells, this must be `dynatrace-oneagent-windows`.
* `include: stemcell - os`: For Windows cells, this must be `windows2012R2` and/or `windows2016`.
<p class="note"><strong>Note:</strong> To modify the configuration of an existing deployment, you must update the manifest file and redeploy.</p>
## <a id="download-deploy"></a> Download and Deploy the Dynatrace Full-Stack Add-on for PCF
After deploying Ops Manager, do the following to download and deploy the Dynatrace Full-Stack Add-on for PCF:
1. Download the Dynatrace Full-Stack Add-on for PCF software binary from [Pivotal Network](https://network.pivotal.io/products/dynatrace-fullstack-addon) to your local machine.
1. Copy the software binary to your Ops Manager instance.
<pre class="terminal">$ scp -i PATH/TO/PRIVATE/KEY dynatrace-release.tar.gz ubuntu@YOUR-OPS-MANAGER-VM-IP:</pre>
1. Copy the Dynatrace manifest file to your Ops Manager instance.
<pre class="terminal">$ scp -i PATH/TO/PRIVATE/KEY runtime-config-dynatrace.yml ubuntu@YOUR-OPS-MANAGER-VM-IP:</pre>
1. SSH into Ops Manager.
<pre class="terminal">$ ssh -i PATH-TO-PRIVATE-KEY ubuntu@YOUR-OPS-MANAGER-VM-IP</pre>
1. On the Ops Manager VM, navigate to the software binary location in your working directory.
<pre class="terminal">
$ cd PATH-TO-BINARY</pre>
1. Log in to the BOSH Director.
* **For Ops Manager v1.11 or v1.12:**
<ol type="i">
<li>
On the Ops Manager VM, create an alias in the BOSH CLI for your BOSH Director IP address. For example:
<pre class="terminal">$ bosh2 alias-env my-env -e 10.0.16.10</pre>
</li>
<li>
Log in to the BOSH Director, specifying the newly created alias.
For example:
<pre class="terminal">$ bosh2 -e my-env log-in</pre>
</li>
</ol>
* **For Ops Manager v2.0 or later:**
<ol type="i">
<li>
On the Ops Manager VM, create an alias in the BOSH CLI for your BOSH Director IP address. For example:
<pre class="terminal">$ bosh alias-env my-env -e 10.0.16.10</pre>
</li>
<li>
Log in to the BOSH Director, specifying the newly created alias.
For example:
<pre class="terminal">$ bosh -e my-env log-in</pre>
</li>
</ol>
1. Upload your release.
* **For Ops Manager v1.11 or v1.12:**
<pre class="terminal">$ bosh2 -e my-env upload-release PATH-TO-BINARY/dynatrace-release.tar.gz</pre>
* **For Ops Manager v2.0 or later:**
<pre class="terminal">$ bosh -e my-env upload-release PATH-TO-BINARY/dynatrace-release.tar.gz</pre>
1. (Optional) From the command line, you can confirm that upload of the Dynatrace software binary is complete. You should see the Dynatrace binary file.
* **For Ops Manager v1.11 or v1.12:**
<pre class="terminal">$ bosh2 -e my-env releases</pre>
* **For Ops Manager v2.0 or later:**
<pre class="terminal">$ bosh -e my-env releases</pre>
1. Update your runtime configuration to include the Dynatrace Add-on for PCF.
<p class="note"><strong>Note</strong>: If you installed other BOSH add-ons, you must merge the Dynatrace manifest into your existing add-on manifest. Append the contents of <code>runtime-config-dynatrace.yml</code> to your existing add-on YML file.</p>
* **For Ops Manager v1.11 or v1.12:**
<pre class="terminal">$ bosh2 -e my-env update-runtime-config PATH/runtime-config-dynatrace.yml</pre>
* **For Ops Manager v2.0 or later:**
<pre class="terminal">$ bosh -e my-env update-runtime-config PATH/runtime-config-dynatrace.yml</pre>
1. Verify your runtime configuration changes match what you specified in the Dynatrace manifest file.
* **For Ops Manager v1.11 or v1.12:**
<pre class="terminal">$ bosh2 -e my-env runtime-config</pre>
* **For Ops Manager v2.0 or later:**
<pre class="terminal">$ bosh -e my-env runtime-config</pre>
For example:
<pre class="terminal">
Acting as user 'admin' on 'micro'
releases:
<span>-</span> {name: dynatrace-oneagent, version: 1.2.1}
addons:
<span>-</span> name: dynatrace-oneagent-addon
jobs:
<span>-</span> name: dynatrace-oneagent
release: dynatrace-oneagent
...
</pre>
1. Navigate to your **Installation Dashboard** in Ops Manager.
1. Click **Apply Changes**.