Skip to content

metricsgateway job from app-autoscaler/3.1.1

Github source: 5e13214 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
port

The listening port of health endpoint

Default
6503
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
100

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 (from hooks/post-start.sh.erb)
  • bin/hooks/post-stop.sh (from hooks/post-stop.sh.erb)
  • bin/hooks/pre-start.sh (from hooks/pre-start.sh.erb)
  • bin/hooks/pre-stop.sh (from hooks/pre-stop.sh.erb)
  • bin/metricsgateway_ctl (from metricsgateway_ctl)
  • bin/pre-start (from pre-start.erb)
  • config/certs/metricsserver_client/ca.crt (from metricsserver_client_ca.crt.erb)
  • config/certs/metricsserver_client/server.crt (from metricsserver_client.crt.erb)
  • config/certs/metricsserver_client/server.key (from metricsserver_client.key.erb)
  • config/certs/policy_db/ca.crt (from policy_db_ca.crt.erb)
  • config/certs/reverselogproxy_client/ca.crt (from reverselogproxy_client_ca.crt.erb)
  • config/certs/reverselogproxy_client/client.crt (from reverselogproxy_client.crt.erb)
  • config/certs/reverselogproxy_client/client.key (from reverselogproxy_client.key.erb)
  • config/metricsgateway.yml (from metricsgateway.yml.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.