Name: bosh-hm-forwarder
Owner: Cloud Foundry
Description: null
Created: 2017-01-09 17:13:32.0
Updated: 2017-09-20 07:14:51.0
Pushed: 2017-03-22 17:52:33.0
Homepage: null
Size: 22
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The purpose of the Bosh HM Forwarder is to forward bosh health metrics into Loggregator thus making them available in the firehose.
Bosh Health Metrics are currently emitted as bosh.healthmonitor.system.*
Currently the Bosh Director is capable of emitting metrics via its plugin architecture. The Bosh HM Forwarder acts as an OpenTSDB listener which reads off the metrics forwarded by the Bosh Health Monitor.
The Bosh HM Forwarder must be colocated with a fully functioning Metron Agent. It then forwards the metrics to Dopplers via the Metron Agent as ValueMetric type.
cd ~/workspace/loggregator/src/metron
Use router_z1 on the cf_warden deployment to get the metron_agent configuration copy that information to /tmp/metron_config.json For Example:
ex": 0,
": "router_z1",
e": "z1",
loyment": "cf-warden",
dUrls": ["http://10.244.0.42:4001"],
dMaxConcurrentRequests": 10,
redSecret": "loggregator-secret",
acyIncomingMessagesPort": 3456,
psondeIncomingMessagesPort": 3457,
dQueryIntervalMilliseconds": 5000,
gregatorDropsondePort": 3457,
log": "vcap.metron_agent"
go run main.go -config /tmp/metron_config.json
cd ~/workspace/loggregator/src/boshhmforwarder
ncomingPort":4001,
etronPort": 3457
go run main.go --configPath /tmp/bosh-forwarder.json
cd ~/workspace/bosh-lite
vagrant ssh
sudo -i
vi /var/vcap/jobs/health_monitor/config/health_monitor.yml
add the following under 'plugins:' (line 32ish)
ins:
]
ame: tsdb
vents:
- alert
- heartbeat
ptions:
host: <your HostIP>
port: 4001
or (in case of JSON config)
gins": [{
"name": "tsdb",
"events": ["alert", "heartbeat"],
"options": {
"host": "10.244.5.35",
"port": 4000
}
"name": "logger",
"events": ["alert"]
... }
to find ifconfig
and look for:
flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
10.35.33.57 netmask 0xffffff00 broadcast 10.35.33.255
us: active
monit restart health_monitor
Add the loggregator release to the manifest
name: loggregator release: latest
Add the boshhmforwarder to the instance group/job
name: boshhmforwarder release: loggregator
: Ideally, the Bosh HM Forwarder should be located on a **single** instance
has a Metron Agent on it. As such, it can be deployed on a separate vm
the Metron Agent colocated on it.