Skip to content

Commit

Permalink
Adds experimental ops file infrastructure-metrics.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Poydence authored and pivotal committed Sep 5, 2018
1 parent bdf91fa commit 564a499
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 0 deletions.
1 change: 1 addition & 0 deletions operations/experimental/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ and the ops-files will be removed.
| [`enable-tls-cloud-controller-postgres.yml`](enable-tls-cloud-controller-postgres.yml) | Enables the usage of TLS to secure the connection between Cloud Controller and its Postgres database | Requires capi-release >= 1.41.0 and `use-postgres.yml` |
| [`enable-traffic-to-internal-networks.yml`](enable-traffic-to-internal-networks.yml) | Allows traffic from app containers to internal networks. Required to allow applications to communicate with the running CredHub in non-assisted mode. | |
| [`fast-deploy-with-downtime-and-danger.yml`](fast-deploy-with-downtime-and-danger.yml) | Risky, but fast. Disable canaries, increase the max number of vms bosh will update simultaneously, and remove `serial: true` from most instance groups to enable faster, but probably downtimeful, deploys. | |
| ['infrastructure-metrics.yml`](infrastructure-metrics.yml) | Add the Prometheus node exporter and Loggregator Prom Scraper to addons. This puts infrastructure metrics into Loggregator's metric stream. | |
| [`migrate-cf-mysql-to-pxc.yml`](migrate-cf-mysql-to-pxc.yml) | Migrates from an existing cf-mysql database to [pxc-release](https://github.com/cloudfoundry-incubator/pxc-release). After the migration is complete, switch to the `use-pxc.yml` operations file. | |
| [`perm-service.yml`](perm-service.yml) | Deploy CF with [Perm Service](https://github.com/cloudfoundry-incubator/perm) | Requires `enable-mysql-tls.yml`. See the [deployment section of perm-release's README file](https://github.com/cloudfoundry-incubator/perm-release/blob/master/README.md#deploying-perm-with-cf-deployment) for more information|
| [`perm-service-with-pxc-release.yml`](perm-service-with-pxc-release.yml) | Use [pxc-release](https://github.com/cloudfoundry-incubator/pxc-release) as data store for Perm Service. | Requires `perm-service.yml` and `use-pxc.yml`. |
Expand Down
134 changes: 134 additions & 0 deletions operations/experimental/infrastructure-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
- type: replace
path: /releases/-
value:
name: "node-exporter"
version: "4.0.1"
url: "https://bosh.io/d/github.com/cloudfoundry-community/node-exporter-boshrelease?v=4.0.1"
sha1: "ade04174f6eaf14173f204cc46a629fe6cd07c63"

- type: replace
path: /addons/-
value:
name: node_exporter
jobs:
- name: node_exporter
release: node-exporter
properties:
node_exporter:
collector:
# To see a full list of available metrics and descriptions, see
# https://github.com/prometheus/node_exporter/tree/v0.16.0#enabled-by-default
#
# Enabled by default
cpu:
enabled: true
diskstats:
enabled: true
meminfo:
enabled: true
netstat:
enabled: true

# Disabled by default
arp:
enabled: false
bcache:
enabled: false
bonding:
enabled: false
buddyinfo:
enabled: false
conntrack:
enabled: false
devstat:
enabled: false
drbd:
enabled: false
edac:
enabled: false
entropy:
enabled: false
filefd:
enabled: false
filesystem:
enabled: false
hwmon:
enabled: false
infiniband:
enabled: false
interrupts:
enabled: false
ipvs:
enabled: false
ksmd:
enabled: false
loadavg:
enabled: false
logind:
enabled: false
mdadm:
enabled: false
meminfo_numa:
enabled: false
mountstats:
enabled: false
netdev:
enabled: false
nfs:
enabled: false
nfsd:
enabled: false
ntp:
enabled: false
qdisc:
enabled: false
runit:
enabled: false
sockstat:
enabled: false
stat:
enabled: false
supervisord:
enabled: false
systemd:
enabled: false
tcpstat:
enabled: false
textfile:
enabled: false
time:
enabled: false
uname:
enabled: false
vmstat:
enabled: false
wifi:
enabled: false
xfs:
enabled: false
zfs:
enabled: false
timex:
enabled: false
include:
stemcell:
- os: ubuntu-trusty
exclude:
jobs:
- name: smoke_tests
release: cf-smoke-tests

- type: replace
path: /addons/-
value:
name: prom_scraper
jobs:
- name: prom_scraper
release: loggregator-agent
include:
stemcell:
- os: ubuntu-trusty
exclude:
jobs:
- name: smoke_tests
release: cf-smoke-tests
1 change: 1 addition & 0 deletions scripts/test-experimental-ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ test_experimental_ops() {

check_interpolation "fast-deploy-with-downtime-and-danger.yml"

check_interpolation "infrastructure-metrics.yml"
check_interpolation "migrate-cf-mysql-to-pxc.yml"

check_interpolation "name: perm-service.yml" "enable-mysql-tls.yml" "-o perm-service.yml -v perm_uaa_clients_cc_perm_secret=perm_secret -v perm_uaa_clients_perm_monitor_secret=perm_monitor_secret"
Expand Down

0 comments on commit 564a499

Please sign in to comment.