log-cache-expvar-forwarder job from log-cache/2.0.3
Github source:
724ccd0
or
master branch
Properties¶
counters
¶
An array of Objects that have the following fields: - addr: address of the expvar endpoint - name: The output name of the Counter - source_id: The output sourceID of the Counter - template: The golang text/template to find the metric in the expvar output. - tags: An object that can only have string values. They will be passed as tags on the envelope.
- Default
[]
default_source_id
¶
Source ID to use for reported metrics when none is provided. Also used for version metrics.
- Default
log-cache
gauges
¶
An array of Objects that have the following fields: - addr: address of the expvar endpoint - name: The output name of the Counter - unit: The output unit of the Counter - source_id: The output sourceID of the Counter - template: The golang text/template to find the metric in the expvar output. - tags: An object that can only have string values. They will be passed as tags on the envelope.
- Default
[]
interval
¶
How often the expvar-forwarder should scrape registered endpoints and report values.
- Default
1m
log_metrics
¶
Write each metric from the endpoints to Log Cache and stdout.
- Default
true
loggregator_agent
¶
maps
¶
An array of Objects that have the following fields: - addr: address of the expvar endpoint - name: The output name of the Counter - source_id: The output sourceID of the Map - template: The golang text/template to find the metric in the expvar output. (Hint: you’ll probably want to use a custom map formatter such as the jsonMap) - tags: An object that can only have string values. They will be passed as tags on the envelope. Each entry in the map will be parsed into one gauge per key before it is forwarder onto the receiving log cache instance.
- Default
[]
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/log-cache-expvar-forwarder/
directory
(learn more).
bin/run.sh
(fromrun.sh
)config/bpm.yml
(frombpm.yml.erb
)config/certs/loggregator_agent.crt
(fromloggregator_agent.crt.erb
)config/certs/loggregator_agent.key
(fromloggregator_agent.key.erb
)config/certs/loggregator_ca.crt
(fromloggregator_ca.crt.erb
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.