This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# login container | |
root@6d5e6e7c-3f5b-4c93-8788-b776e43571bd:~# nslookup uaa.10.244.0.34.xip.io | |
Server: 10.0.2.2 | |
Address: 10.0.2.2#53 | |
** server can't find uaa.10.244.0.34.xip.io: REFUSED | |
# login container | |
root@6d5e6e7c-3f5b-4c93-8788-b776e43571bd:~# ping 8.8.8.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script prints out the /healthz and /varz connection info | |
# for your running Cloud Foundry jobs. | |
# | |
# The nats_uri variable should be updated to suit your deployment. | |
# The default nats_uri value will work for a standard bosh-lite deployment. | |
require 'json' | |
require 'nats/client' | |
nats_uri = 'nats://nats:[email protected]:4222' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# loggregator manifest config | |
jobs: | |
- instances: 1 | |
name: loggregator_z1 | |
networks: | |
- name: cf1 | |
static_ips: | |
- 10.244.0.14 | |
properties: | |
networks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syslog_aggregator manifest config | |
jobs: | |
# NB: This job is optional. There's no need to include this job if | |
# you already have a syslog endpoint to send your logs to. | |
- instances: 1 | |
name: syslog_aggregator_server | |
networks: | |
- name: cf1 | |
static_ips: | |
- 10.244.0.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# collector manifest config | |
jobs: | |
- instances: 1 | |
name: collector | |
networks: | |
- name: cf1 | |
static_ips: | |
- 10.244.0.38 | |
properties: | |
networks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add logsearch to the releases array. | |
releases: | |
- name: cf | |
version: latest | |
- name: logsearch | |
version: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add a resource pool for the logsearch jobs. | |
# Note: We're just using 1 additional resource pool here to keep things simple. | |
# Note: Update the stemcell name as required (run `bosh stemcells` to get the name of your stemcell). | |
# Note: We're using the services1 network for this tutorial, update this if you need to. | |
resource_pools: | |
- name: logsearch | |
network: services1 | |
size: 6 | |
stemcell: | |
name: bosh-warden-boshlite-ubuntu-trusty-go_agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: ls_api | |
release: logsearch | |
templates: | |
- name: api | |
- name: collectd | |
- name: elasticsearch | |
instances: 1 | |
resource_pool: logsearch | |
networks: | |
- name: services1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the required logsearch properties | |
properties: | |
collectd: | |
hostname_prefix: "dev.logsearch." | |
python_librato: | |
include_regex: "collectd\\.cpu\\..*,collectd\\.df\\..*,collectd\\.disk\\..*,collectd\\.elasticsearch\\..*,collectd\\.entropy\\..*,collectd\\.interface\\..*,collectd\\.load\\..*,collectd\\.memory\\..*,collectd\\.processes\\..*,collectd\\.redis_.*,collectd\\.users\\..*" | |
elasticsearch: | |
host: 10.244.1.2 | |
cluster_name: logsearch-bosh-lite | |
drain: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { | |
var myWaitGroup sync.WaitGroup |
OlderNewer