metricsgateway job from app-autoscaler/5.2.11
Github source:
6e23a578
or
master branch
Properties¶
autoscaler
¶
metricsgateway
¶
app_manager
¶
app_refresh_interval
¶The time interval to refresh cached application from policy database
- Default
60s
emitter
¶
buffer_size
¶The size of channel in each emitter to store envelopes before sending to metricsserver
- Default
500
handshake_timeout
¶The timeout of webscoket handshake between emitter and metricsserver
- Default
1s
keep_alive_interval
¶The time interval of keep alive for the websocket connection between emitter and metricsserver
- Default
5s
max_close_retry_count
¶The maximum retry times to close a websocket connection between emitter and metricsserver
- Default
5
max_setup_retry_count
¶The maximum retry times to set up a websocket connection between emitter and metricsserver
- Default
5
metricsserver_client
¶ca_cert
¶PEM-encoded ca certificate of metricsserver
cert
¶PEM-encoded tls client certificate to connect to metricsserver
key
¶PEM-encoded tls client key to connect to metricsserver
retry_delay
¶The duration between two websocket retrying
- Default
10s
envelop_chan_size
¶The channel size to transport envelope from nozzles to emitters
- Default
500
health
¶
password
¶the password of health endpoint
- Default
""
port
¶The listening port of health endpoint
- Default
6503
username
¶the username of health endpoint
- Default
""
hooks
¶
post_start
¶Script to run after metricsgateway has started
- Default
""
post_stop
¶Script to run after metricsgateway has stopped
- Default
""
pre_start
¶Script to run before starting metricsgateway
- Default
""- Example
|+ #!/bin/bash echo "Going to start metricsgateway" echo "metricsgateway data directory is ${DATA_DIR}" echo "metricsgateway port is ${PORT}" echo "metricsgateway directory is ${PACKAGE_DIR}"
pre_stop
¶Script to run before stopping metricsgateway
- Default
""
logging
¶
level
¶The level of logging
- Default
info
nozzle
¶
loggregator_rlp_tls
¶ca_cert
¶PEM-encoded ca certificate of ReverseLogProxy
cert
¶PEM-encoded tls client certificate to connect to ReverseLogProxy
key
¶PEM-encoded tls client key to connect to ReverseLogProxy
rlp_addr
¶The address of ReverseLogProxy
shard_id
¶The shard id for nozzle to fetch envelopes from ReverseLogProxy
- Default
CF_AUTOSCALER
nozzle_count
¶The go-loggregator client count in a metricsgateway
- Default
3
require_consul
¶Whether to start consul agent
- Default
false
policy_db
¶
address
¶IP address on which the policydb server will listen
- Default
autoscalerpostgres.service.cf.internal
databases
¶The list of databases used in policydb database including name
db_scheme
¶Database scheme to be used to access policydb
port
¶Port on which the policydb server will listen
roles
¶The list of database roles used in policydb database including name/password
sslmode
¶The sslmode to connect to postgres server
- Default
disable
tls
¶
ca
¶PEM-encoded ca certificate of tls database server
- Default
""
policy_db_connection_config
¶
connection_max_lifetime
¶
- Default
60s
max_idle_connections
¶
- Default
10
max_open_connections
¶
- Default
20
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/metricsgateway/
directory
(learn more).
bin/hooks/post-start.sh
(fromhooks/post-start.sh.erb
)bin/hooks/post-stop.sh
(fromhooks/post-stop.sh.erb
)bin/hooks/pre-start.sh
(fromhooks/pre-start.sh.erb
)bin/hooks/pre-stop.sh
(fromhooks/pre-stop.sh.erb
)bin/metricsgateway_ctl
(frommetricsgateway_ctl
)bin/pre-start
(frompre-start.erb
)config/certs/metricsserver_client/ca.crt
(frommetricsserver_client_ca.crt.erb
)config/certs/metricsserver_client/server.crt
(frommetricsserver_client.crt.erb
)config/certs/metricsserver_client/server.key
(frommetricsserver_client.key.erb
)config/certs/policy_db/ca.crt
(frompolicy_db_ca.crt.erb
)config/certs/reverselogproxy_client/ca.crt
(fromreverselogproxy_client_ca.crt.erb
)config/certs/reverselogproxy_client/client.crt
(fromreverselogproxy_client.crt.erb
)config/certs/reverselogproxy_client/client.key
(fromreverselogproxy_client.key.erb
)config/metricsgateway.yml
(frommetricsgateway.yml.erb
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.