Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6af0685

Browse files
committedSep 17, 2019
Merge branch '745-overops-updates'
Signed-off-by: Ben Hale <bhale@pivotal.io>
2 parents 9e265d8 + ef8a4f5 commit 6af0685

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed
 

‎docs/framework-takipi_agent.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ The credential payload can contain the following entries.
1818

1919
| Name | Description
2020
| ---- | -----------
21-
| `secret_key` | (Optional) The agent installation key
22-
| `collector_host` | (Optional) The remote collector hostname or IP
23-
| `collector_port` | (Optional) the remote collector port
21+
| `collector_host` | The remote collector hostname or IP
22+
| `collector_port` | the remote collector port (TCP)
23+
| `secret_key` | (DEPRECATED) The agent installation key for running collector alongside agent
2424

25-
Setting `secret_key` will run a local collector alongside the agent. Setting `collector_host` will use a remote collector. More information can be found in [OverOps Remote Collector][]
25+
Setting `collector_host` and `collector_port` will connect to a remote collector. More information can be found in [OverOps Remote Collector][]
26+
27+
(DEPRECATED)Setting `secret_key` will run a local collector alongside the agent.
2628

2729
## Configuration
2830
For general information on configuring the buildpack, including how to specify configuration values through environment variables, refer to [Configuration and Extension][].
@@ -32,7 +34,7 @@ The framework can be configured by modifying the [`config/takipi_agent.yml`][] f
3234
| Name | Description
3335
| ---- | -----------
3436
| `node_name_prefix` | Node name prefix, will be concatenated with `-` and instance index
35-
| `application_name` | Override the Cloudfoundry default application name
37+
| `application_name` | Override the CloudFoundry default application name
3638

3739
## Logs
3840

@@ -49,5 +51,5 @@ If your container is running out of memory and exited with status 137, then you
4951
[Configuration and Extension]: ../README.md#configuration-and-extension
5052
[repositories]: extending-repositories.md
5153
[version syntax]: extending-repositories.md#version-syntax-and-ordering
52-
[OverOps Remote Collector]: https://support.overops.com/hc/en-us/articles/227109628-Remote-Daemon-Process-
54+
[OverOps Remote Collector]: https://doc.overops.com/docs/install-collector
5355
[OverOps Service]: https://www.overops.com

‎lib/java_buildpack/framework/takipi_agent.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ def application_name
7777
def config_env_vars(credentials)
7878
env = @droplet.environment_variables
7979

80-
secret_key = credentials['secret_key']
81-
env.add_environment_variable 'TAKIPI_SECRET_KEY', secret_key if secret_key
82-
8380
collector_host = credentials['collector_host']
84-
env.add_environment_variable 'TAKIPI_MASTER_HOST', collector_host if collector_host
81+
env.add_environment_variable 'TAKIPI_COLLECTOR_HOST', collector_host if collector_host
8582

8683
collector_port = credentials['collector_port']
87-
env.add_environment_variable 'TAKIPI_MASTER_PORT', collector_port if collector_port
84+
env.add_environment_variable 'TAKIPI_COLLECTOR_PORT', collector_port if collector_port
85+
86+
secret_key = credentials['secret_key']
87+
env.add_environment_variable 'TAKIPI_SECRET_KEY', secret_key if secret_key
8888
end
8989

9090
def lib

‎spec/java_buildpack/framework/takipi_agent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
it 'updates user environment variables' do
6565
component.release
6666

67-
expect(environment_variables).to include('TAKIPI_MASTER_HOST=test-host')
67+
expect(environment_variables).to include('TAKIPI_COLLECTOR_HOST=test-host')
6868
end
6969

7070
context 'with secret key' do

0 commit comments

Comments
 (0)
Please sign in to comment.