Skip to content

Commit 2d601e0

Browse files
authored
Merge pull request #134 from cloudfoundry-community/feature/issue131-add-advanced-params
Feature/issue131 add advanced params
2 parents 0090c50 + 2e47d9a commit 2d601e0

File tree

2 files changed

+69
-11
lines changed

2 files changed

+69
-11
lines changed

tile/tile-history.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
history:
33
- 0.2.1
4-
version: 1.0.0
4+
- 1.0.0
5+
version: 1.0.1

tile/tile.yml

Lines changed: 67 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ forms:
2828
- name: splunk_host
2929
type: string
3030
label: HTTP Event Collector Endpoint URL
31-
description: HTTP Event Collector endpoint URL.
31+
description: HTTP Event Collector endpoint URL.
3232
- name: splunk_token
3333
type: secret
3434
label: HTTP Event Collector Token
@@ -42,7 +42,12 @@ forms:
4242
type: string
4343
label: Index
4444
description: The name of the Splunk index that events will be sent to. WARNING:Setting an invalid index will cause events to be lost.
45-
default: main
45+
default: main
46+
- name: splunk_version
47+
type: string
48+
label: Splunk Version
49+
description: If using Splunk Enterprise, enter the version in `major.minor` format to inform how fields are sent to Splunk.
50+
default: '6.6'
4651

4752
- name: cf-config
4853
label: Cloud Foundry Settings
@@ -83,12 +88,12 @@ forms:
8388
label: Error
8489
- name: ContainerMetric
8590
label: ContainerMetric
86-
description: Event types to forward to Splunk.
91+
description: Event types to forward to Splunk.
8792

8893
- name: advanced
8994
label: Advanced
9095
description: Additional Nozzle Configuration
91-
properties:
96+
properties:
9297
- name: scale_out_nozzle
9398
type: integer
9499
label: Scale Out Nozzle
@@ -97,7 +102,7 @@ forms:
97102
- name: firehose_subscription_id
98103
type: string
99104
label: Firehose Subscription ID
100-
description: Unique subscription ID to nozzle. Firehose balances across socket connections with the same ID.
105+
description: Unique subscription ID to nozzle. Firehose balances across socket connections with the same ID.
101106
optional: true
102107
- name: extra_fields
103108
type: string
@@ -109,26 +114,78 @@ forms:
109114
default: false
110115
label: Add App Information
111116
description: Enriches raw data with application metadata, such as application name, space name, org name, etc.
112-
- name: enable_event_tracing
117+
- name: enable_event_tracing
113118
type: boolean
114119
label: Enable Event Tracing
115120
default: false
116121
description: Enables data loss tracing.
117-
122+
- name: hec_retries
123+
type: integer
124+
label: HEC Retries
125+
default: 5
126+
description: The retry count for sending events to the Splunk platform. Events not successfully sent after this number of retries will be dropped, causing data loss.
127+
- name: hec_batch_size
128+
type: integer
129+
label: HEC Batch Size
130+
default: 100
131+
description: The number of events per batch sent to Splunk HTTP Event Collector.
132+
- name: hec_workers
133+
type: integer
134+
label: HEC Workers
135+
default: 8
136+
description: The number of concurrent workers sending data to Splunk HTTP Event Collector. Scale this number to your Splunk platform data collection capacity accordingly.
137+
- name: consumer_queue_size
138+
type: integer
139+
label: Consumer Queue Size
140+
default: 10000
141+
description: The internal consumer queue buffer size. Events will be sent to your Splunk platform after queue is full.
142+
- name: flush_interval
143+
type: string
144+
label: Flush Interval
145+
default: 5s
146+
description: Time interval (in sec) for flushing queue to the Splunk platform regardless of Consumer Queue Size. Prevents stale events in low throughput systems.
147+
- name: missing_app_cache_invalidate_ttl
148+
type: string
149+
label: Missing App Cache Invalidate TTL
150+
default: 0s
151+
description: Time interval (in sec) between refreshing the missing app info cache. Set to 0 to maintain cache until nozzle restart.
152+
- name: app_cache_invalidate_ttl
153+
type: string
154+
label: App Cache Invalidate TTL
155+
default: 0s
156+
description: Time interval (in sec) between refreshing the app info local cache. Set to 0 to only populate the cache during startup or restart of the nozzle.
157+
- name: app_limits
158+
type: integer
159+
label: App Limits
160+
default: 0
161+
description: The number of apps for which metadata is gathered when refreshing the app metadata cache (order based on app creation date). Set to 0 to remove limit.
162+
- name: ignore_missing_app
163+
type: boolean
164+
label: Ignore Missing App
165+
default: true
166+
description: Do not trigger an app metadata refresh when encountering data from an app without info in the app metadata cache.
118167

119168
packages:
120169
- name: splunk-firehose-nozzle
121170
type: app
122171
label: Splunk-Firehose-Nozzle
123172
manifest:
124173
memory: 256M
125-
instances: MY_INSTANCE_COUNT
174+
instances: (( .properties.scale_out_nozzle.value ))
126175
buildpack: binary_buildpack
127176
health-check-type: process
128177
no-route: true
129178
path: ../splunk-firehose-nozzle
130179
command: ./splunk-firehose-nozzle
131180
env:
132181
GOPACKAGENAME: main
133-
pre_deploy: |
134-
sed -i "s/MY_INSTANCE_COUNT/$SCALE_OUT_NOZZLE/g" $PACKAGE_PATH/splunk_firehose_nozzle/manifest.yml
182+
183+
184+
185+
186+
187+
188+
189+
190+
191+

0 commit comments

Comments
 (0)