-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathkibana-docker
executable file
·274 lines (267 loc) · 9 KB
/
kibana-docker
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
#!/bin/bash
#
# ** THIS IS AN AUTO-GENERATED FILE **
#
# Run Kibana, using environment variables to set longopts defining Kibana's
# configuration.
#
# eg. Setting the environment variable:
#
# ELASTICSEARCH_STARTUPTIMEOUT=60
#
# will cause Kibana to be invoked with:
#
# --elasticsearch.startupTimeout=60
kibana_vars=(
console.enabled
console.proxyConfig
console.proxyFilter
cpu.cgroup.path.override
cpuacct.cgroup.path.override
csp.rules
csp.strict
csp.warnLegacyBrowsers
elasticsearch.customHeaders
elasticsearch.hosts
elasticsearch.logQueries
elasticsearch.password
elasticsearch.pingTimeout
elasticsearch.preserveHost
elasticsearch.requestHeadersWhitelist
elasticsearch.requestTimeout
elasticsearch.shardTimeout
elasticsearch.sniffInterval
elasticsearch.sniffOnConnectionFault
elasticsearch.sniffOnStart
elasticsearch.ssl.alwaysPresentCertificate
elasticsearch.ssl.certificate
elasticsearch.ssl.certificateAuthorities
elasticsearch.ssl.key
elasticsearch.ssl.keyPassphrase
elasticsearch.ssl.keystore.path
elasticsearch.ssl.keystore.password
elasticsearch.ssl.truststore.path
elasticsearch.ssl.truststore.password
elasticsearch.ssl.verificationMode
elasticsearch.startupTimeout
elasticsearch.username
i18n.locale
interpreter.enableInVisualize
kibana.autocompleteTerminateAfter
kibana.autocompleteTimeout
kibana.defaultAppId
kibana.index
logging.dest
logging.json
logging.quiet
logging.rotate.enabled
logging.rotate.everyBytes
logging.rotate.keepFiles
logging.rotate.pollingInterval
logging.rotate.usePolling
logging.silent
logging.useUTC
logging.verbose
map.includeElasticMapsService
map.proxyElasticMapsServiceInMaps
map.regionmap
map.tilemap.options.attribution
map.tilemap.options.maxZoom
map.tilemap.options.minZoom
map.tilemap.options.subdomains
map.tilemap.url
monitoring.cluster_alerts.email_notifications.email_address
monitoring.enabled
monitoring.kibana.collection.enabled
monitoring.kibana.collection.interval
monitoring.ui.container.elasticsearch.enabled
monitoring.ui.container.logstash.enabled
monitoring.ui.elasticsearch.password
monitoring.ui.elasticsearch.pingTimeout
monitoring.ui.elasticsearch.hosts
monitoring.ui.elasticsearch.username
monitoring.ui.elasticsearch.logFetchCount
monitoring.ui.elasticsearch.ssl.certificateAuthorities
monitoring.ui.elasticsearch.ssl.verificationMode
monitoring.ui.enabled
monitoring.ui.max_bucket_size
monitoring.ui.min_interval_seconds
newsfeed.enabled
ops.interval
path.data
pid.file
regionmap
server.basePath
server.customResponseHeaders
server.compression.enabled
server.compression.referrerWhitelist
server.cors
server.cors.origin
server.defaultRoute
server.host
server.keepAliveTimeout
server.maxPayloadBytes
server.name
server.port
server.rewriteBasePath
server.socketTimeout
server.ssl.cert
server.ssl.certificate
server.ssl.certificateAuthorities
server.ssl.cipherSuites
server.ssl.clientAuthentication
server.customResponseHeaders
server.ssl.enabled
server.ssl.key
server.ssl.keyPassphrase
server.ssl.keystore.path
server.ssl.keystore.password
server.ssl.truststore.path
server.ssl.truststore.password
server.ssl.redirectHttpFromPort
server.ssl.supportedProtocols
server.xsrf.disableProtection
server.xsrf.whitelist
status.allowAnonymous
status.v6ApiFormat
tilemap.options.attribution
tilemap.options.maxZoom
tilemap.options.minZoom
tilemap.options.subdomains
tilemap.url
timelion.enabled
vega.enableExternalUrls
xpack.apm.enabled
xpack.apm.serviceMapEnabled
xpack.apm.ui.enabled
xpack.apm.ui.maxTraceItems
xpack.apm.ui.transactionGroupBucketSize
apm_oss.apmAgentConfigurationIndex
apm_oss.indexPattern
apm_oss.errorIndices
apm_oss.onboardingIndices
apm_oss.spanIndices
apm_oss.sourcemapIndices
apm_oss.transactionIndices
apm_oss.metricsIndices
xpack.canvas.enabled
xpack.code.ui.enabled
xpack.code.disk.thresholdEnabled
xpack.code.disk.watermarkLow
xpack.code.maxWorkspace
xpack.code.indexRepoFrequencyMs
xpack.code.updateRepoFrequencyMs
xpack.code.lsp.verbose
xpack.code.verbose
xpack.code.security.enableGitCertCheck
xpack.code.security.gitHostWhitelist
xpack.code.security.gitProtocolWhitelist
xpack.encryptedSavedObjects.encryptionKey
xpack.graph.enabled
xpack.graph.canEditDrillDownUrls
xpack.graph.savePolicy
xpack.grokdebugger.enabled
xpack.infra.enabled
xpack.infra.query.partitionFactor
xpack.infra.query.partitionSize
xpack.infra.sources.default.fields.container
xpack.infra.sources.default.fields.host
xpack.infra.sources.default.fields.message
xpack.infra.sources.default.fields.pod
xpack.infra.sources.default.fields.tiebreaker
xpack.infra.sources.default.fields.timestamp
xpack.infra.sources.default.logAlias
xpack.infra.sources.default.metricAlias
xpack.license_management.enabled
xpack.ml.enabled
xpack.reporting.capture.browser.autoDownload
xpack.reporting.capture.browser.chromium.disableSandbox
xpack.reporting.capture.browser.chromium.inspect
xpack.reporting.capture.browser.chromium.maxScreenshotDimension
xpack.reporting.capture.browser.chromium.proxy.enabled
xpack.reporting.capture.browser.chromium.proxy.server
xpack.reporting.capture.browser.chromium.proxy.bypass
xpack.reporting.capture.browser.type
xpack.reporting.capture.concurrency
xpack.reporting.capture.loadDelay
xpack.reporting.capture.settleTime
xpack.reporting.capture.timeout
xpack.reporting.capture.viewport.height
xpack.reporting.capture.viewport.width
xpack.reporting.capture.zoom
xpack.reporting.csv.checkForFormulas
xpack.reporting.csv.enablePanelActionDownload
xpack.reporting.csv.maxSizeBytes
xpack.reporting.csv.scroll.duration
xpack.reporting.csv.scroll.size
xpack.reporting.capture.maxAttempts
xpack.reporting.enabled
xpack.reporting.encryptionKey
xpack.reporting.index
xpack.reporting.kibanaApp
xpack.reporting.kibanaServer.hostname
xpack.reporting.kibanaServer.port
xpack.reporting.kibanaServer.protocol
xpack.reporting.poll.jobCompletionNotifier.interval
xpack.reporting.poll.jobCompletionNotifier.intervalErrorMultiplier
xpack.reporting.poll.jobsRefresh.interval
xpack.reporting.poll.jobsRefresh.intervalErrorMultiplier
xpack.reporting.queue.indexInterval
xpack.reporting.queue.pollEnabled
xpack.reporting.queue.pollInterval
xpack.reporting.queue.pollIntervalErrorMultiplier
xpack.reporting.queue.timeout
xpack.reporting.roles.allow
xpack.rollup.enabled
xpack.security.audit.enabled
xpack.searchprofiler.enabled
xpack.security.authProviders
xpack.security.authc.providers
xpack.security.authc.oidc.realm
xpack.security.authc.saml.realm
xpack.security.authc.saml.maxRedirectURLSize
xpack.security.cookieName
xpack.security.enabled
xpack.security.encryptionKey
xpack.security.loginAssistanceMessage
xpack.security.secureCookies
xpack.security.sessionTimeout
xpack.security.session.idleTimeout
xpack.security.session.lifespan
xpack.security.loginAssistanceMessage
xpack.security.public.protocol
xpack.security.public.hostname
xpack.security.public.port
telemetry.allowChangingOptInStatus
telemetry.enabled
telemetry.optIn
telemetry.optInStatusUrl
telemetry.sendUsageFrom
)
longopts=''
for kibana_var in ${kibana_vars[*]}; do
# 'elasticsearch.hosts' -> 'ELASTICSEARCH_HOSTS'
env_var=$(echo ${kibana_var^^} | tr . _)
# Indirectly lookup env var values via the name of the var.
# REF: http://tldp.org/LDP/abs/html/bashver2.html#EX78
value=${!env_var}
if [[ -n $value ]]; then
longopt="--${kibana_var}=${value}"
longopts+=" ${longopt}"
fi
done
# Files created at run-time should be group-writable, for Openshift's sake.
umask 0002
# The virtual file /proc/self/cgroup should list the current cgroup
# membership. For each hierarchy, you can follow the cgroup path from
# this file to the cgroup filesystem (usually /sys/fs/cgroup/) and
# introspect the statistics for the cgroup for the given
# hierarchy. Alas, Docker breaks this by mounting the container
# statistics at the root while leaving the cgroup paths as the actual
# paths. Therefore, Kibana provides a mechanism to override
# reading the cgroup path from /proc/self/cgroup and instead uses the
# cgroup path defined the configuration properties
# cpu.cgroup.path.override and cpuacct.cgroup.path.override.
# Therefore, we set this value here so that cgroup statistics are
# available for the container this process will run in.
exec /usr/share/kibana/bin/kibana --cpu.cgroup.path.override=/ --cpuacct.cgroup.path.override=/ ${longopts} "$@"