kite 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +130 -66
  3. data/LICENSE.md +202 -0
  4. data/README.md +35 -11
  5. data/bin/concourse/out +16 -20
  6. data/docs/kite-concourse-resource.md +45 -0
  7. data/kite.gemspec +1 -0
  8. data/lib/kite.rb +3 -1
  9. data/lib/kite/cloud.rb +1 -0
  10. data/lib/kite/core.rb +8 -2
  11. data/lib/kite/generate.rb +12 -46
  12. data/lib/kite/helpers.rb +0 -72
  13. data/lib/kite/helpers/concourse.rb +3 -2
  14. data/lib/kite/module.rb +76 -0
  15. data/lib/kite/terraform.rb +45 -0
  16. data/lib/kite/version.rb +1 -1
  17. data/tpl/aws/environment/main.tf.tt +5 -0
  18. data/tpl/aws/environment/s3.tf.tt +13 -0
  19. data/tpl/gcp/environment/gcs.tf.tt +18 -0
  20. data/tpl/gcp/environment/main.tf.tt +5 -0
  21. data/tpl/gcp/environment/outputs.tf.tt +5 -0
  22. data/tpl/service/%output_path%/pipelines/review.yml.tt +55 -37
  23. data/tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt +1 -1
  24. data/tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt +1 -1
  25. data/tpl/service/%output_path%/pipelines/tasks/run-unit.yml.tt +7 -0
  26. data/tpl/service/Makefile.tt +11 -7
  27. data/tpl/service/docs/getting-started.md +73 -0
  28. data/tpl/service/docs/service.md +101 -0
  29. data/tpl/skel/Gemfile.tt +0 -9
  30. data/tpl/skel/config/cloud.yml +11 -66
  31. metadata +29 -88
  32. data/lib/kite/render.rb +0 -116
  33. data/tpl/aws/README.md +0 -52
  34. data/tpl/aws/bin/base/bootstrap.sh +0 -35
  35. data/tpl/aws/bin/base/cleanup.sh.tt +0 -19
  36. data/tpl/aws/bin/base/set-env.sh.tt +0 -7
  37. data/tpl/aws/bin/base/setup-tunnel.sh.tt +0 -4
  38. data/tpl/aws/bin/bosh-install.sh.tt +0 -23
  39. data/tpl/aws/bin/concourse-deploy.sh.tt +0 -14
  40. data/tpl/aws/bin/ingress-deploy.sh.tt +0 -7
  41. data/tpl/aws/bin/ingress-update.sh.tt +0 -7
  42. data/tpl/aws/bin/kops-delete.sh.erb +0 -5
  43. data/tpl/aws/bin/kops-deploy.sh.erb +0 -11
  44. data/tpl/aws/bin/oauth-deploy.sh.tt +0 -17
  45. data/tpl/aws/bin/prometheus-deploy.sh.tt +0 -23
  46. data/tpl/aws/bin/vault-deploy.sh.tt +0 -10
  47. data/tpl/aws/bosh-vars.yml.erb +0 -12
  48. data/tpl/aws/config/oauth.yml +0 -59
  49. data/tpl/aws/deployments/bosh/bosh.yml +0 -144
  50. data/tpl/aws/deployments/bosh/cloud-config.yml.tt +0 -86
  51. data/tpl/aws/deployments/bosh/cpi.yml +0 -98
  52. data/tpl/aws/deployments/bosh/jumpbox-user.yml +0 -27
  53. data/tpl/aws/deployments/concourse/concourse.yml.tt +0 -98
  54. data/tpl/aws/deployments/ingress/ingress.yml.erb +0 -78
  55. data/tpl/aws/deployments/oauth/oauth.yml.tt +0 -95
  56. data/tpl/aws/deployments/prometheus/monitor-bosh.yml +0 -518
  57. data/tpl/aws/deployments/prometheus/monitor-kubernetes.yml +0 -30
  58. data/tpl/aws/deployments/prometheus/prometheus.yml.tt +0 -184
  59. data/tpl/aws/deployments/vault/vault.yml.erb +0 -38
  60. data/tpl/aws/docs/bosh.md +0 -31
  61. data/tpl/aws/docs/concourse.md +0 -41
  62. data/tpl/aws/docs/ingress.md +0 -14
  63. data/tpl/aws/docs/kops.md +0 -35
  64. data/tpl/aws/docs/oauth.md +0 -24
  65. data/tpl/aws/docs/prometheus.md +0 -31
  66. data/tpl/aws/docs/vault.md +0 -35
  67. data/tpl/aws/terraform/kite_bucket.tf +0 -8
  68. data/tpl/aws/terraform/main.tf.tt +0 -36
  69. data/tpl/aws/terraform/network.tf.tt +0 -252
  70. data/tpl/aws/terraform/outputs.tf +0 -19
  71. data/tpl/aws/terraform/terraform.tfvars.tt +0 -21
  72. data/tpl/aws/terraform/variables.tf +0 -73
  73. data/tpl/gcp/README.md +0 -54
  74. data/tpl/gcp/bin/base/bootstrap.sh +0 -35
  75. data/tpl/gcp/bin/base/cleanup.sh.tt +0 -20
  76. data/tpl/gcp/bin/base/set-env.sh.tt +0 -10
  77. data/tpl/gcp/bin/base/setup-tunnel.sh.tt +0 -13
  78. data/tpl/gcp/bin/bosh-install.sh.tt +0 -22
  79. data/tpl/gcp/bin/concourse-deploy.sh.tt +0 -14
  80. data/tpl/gcp/bin/ingress-deploy.sh.tt +0 -7
  81. data/tpl/gcp/bin/ingress-update.sh.tt +0 -7
  82. data/tpl/gcp/bin/oauth-deploy.sh.tt +0 -19
  83. data/tpl/gcp/bin/prometheus-deploy.sh.tt +0 -23
  84. data/tpl/gcp/bin/vault-deploy.sh.tt +0 -10
  85. data/tpl/gcp/bosh-vars.yml.erb +0 -9
  86. data/tpl/gcp/config/oauth.yml +0 -59
  87. data/tpl/gcp/deployments/bosh/bosh.yml +0 -144
  88. data/tpl/gcp/deployments/bosh/cloud-config.yml.tt +0 -73
  89. data/tpl/gcp/deployments/bosh/cpi.yml +0 -69
  90. data/tpl/gcp/deployments/bosh/jumpbox-user.yml +0 -27
  91. data/tpl/gcp/deployments/concourse/concourse.yml.tt +0 -104
  92. data/tpl/gcp/deployments/concourse/test/test-credentials.yml +0 -3
  93. data/tpl/gcp/deployments/concourse/test/test-pipeline.yml +0 -24
  94. data/tpl/gcp/deployments/ingress/ingress.yml.erb +0 -111
  95. data/tpl/gcp/deployments/oauth/oauth.yml.tt +0 -95
  96. data/tpl/gcp/deployments/prometheus/monitor-bosh.yml +0 -518
  97. data/tpl/gcp/deployments/prometheus/monitor-kubernetes.yml +0 -30
  98. data/tpl/gcp/deployments/prometheus/prometheus.yml +0 -183
  99. data/tpl/gcp/deployments/vault/vault.yml.erb +0 -37
  100. data/tpl/gcp/docs/bosh.md +0 -36
  101. data/tpl/gcp/docs/concourse.md +0 -41
  102. data/tpl/gcp/docs/ingress.md +0 -12
  103. data/tpl/gcp/docs/oauth.md +0 -24
  104. data/tpl/gcp/docs/prometheus.md +0 -27
  105. data/tpl/gcp/docs/vault.md +0 -36
  106. data/tpl/gcp/terraform/gcs.tf.tt +0 -18
  107. data/tpl/gcp/terraform/main.tf +0 -70
  108. data/tpl/gcp/terraform/network.tf +0 -52
  109. data/tpl/gcp/terraform/outputs.tf +0 -7
  110. data/tpl/gcp/terraform/terraform.tfvars.tt +0 -15
  111. data/tpl/gcp/terraform/variables.tf +0 -37
  112. data/tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt +0 -22
  113. data/tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt +0 -12
  114. data/tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt +0 -12
  115. data/tpl/skel/docs/index.md.tt +0 -0
  116. data/tpl/skel/docs/quickstart.md.tt +0 -0
@@ -1,69 +0,0 @@
1
- ---
2
- - type: replace
3
- path: /releases/-
4
- value:
5
- name: bosh-google-cpi
6
- version: 25.10.0
7
- url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-google-cpi-release?v=25.10.0
8
- sha1: 3a551822bff0fd040d73fd385ab34fbc17b476f5
9
-
10
- - type: replace
11
- path: /resource_pools/name=vms/stemcell?
12
- value:
13
- url: https://bosh.io/d/stemcells/bosh-google-kvm-ubuntu-trusty-go_agent?v=3445.7
14
- sha1: 4bc264aab6717c81fb3a37783e796982fe9956ca
15
-
16
- # Configure sizes
17
- - type: replace
18
- path: /resource_pools/name=vms/cloud_properties?
19
- value:
20
- zone: ((zone))
21
- machine_type: n1-standard-1
22
- root_disk_size_gb: 40
23
- root_disk_type: pd-standard
24
-
25
- - type: replace
26
- path: /disk_pools/name=disks/cloud_properties?
27
- value: {type: pd-standard}
28
-
29
- - type: replace
30
- path: /networks/name=default/subnets/0/cloud_properties?
31
- value:
32
- network_name: ((network))
33
- subnetwork_name: ((subnetwork))
34
- ephemeral_external_ip: false
35
- tags: ((tags))
36
-
37
- # Add CPI job
38
- - type: replace
39
- path: /instance_groups/name=bosh/jobs/-
40
- value: &cpi_job
41
- name: google_cpi
42
- release: bosh-google-cpi
43
-
44
- - type: replace
45
- path: /instance_groups/name=bosh/properties/director/cpi_job?
46
- value: google_cpi
47
-
48
- - type: replace
49
- path: /cloud_provider/template?
50
- value: *cpi_job
51
-
52
- - type: replace
53
- path: /instance_groups/name=bosh/properties/google?
54
- value: &cpi_conf
55
- project: ((project_id))
56
- json_key: ((gcp_credentials_json))
57
-
58
- - type: replace
59
- path: /cloud_provider/properties/google?
60
- value: *cpi_conf
61
-
62
- # Use GCP NTP
63
- - type: replace
64
- path: /instance_groups/name=bosh/properties/ntp
65
- value: &ntp [169.254.169.254]
66
-
67
- - type: replace
68
- path: /cloud_provider/properties/ntp
69
- value: *ntp
@@ -1,27 +0,0 @@
1
- - type: replace
2
- path: /releases/name=os-conf?
3
- value:
4
- name: os-conf
5
- version: 12
6
- url: https://bosh.io/d/github.com/cloudfoundry/os-conf-release?v=12
7
- sha1: af5a2c9f228b9d7ec4bd051d71fef0e712fa1549
8
-
9
- - type: replace
10
- path: /instance_groups/name=bosh/properties/director/default_ssh_options?/gateway_user
11
- value: jumpbox
12
-
13
- - type: replace
14
- path: /instance_groups/name=bosh/jobs/-
15
- value:
16
- name: user_add
17
- release: os-conf
18
- properties:
19
- users:
20
- - name: jumpbox
21
- public_key: ((jumpbox_ssh.public_key))
22
-
23
- - type: replace
24
- path: /variables/-
25
- value:
26
- name: jumpbox_ssh
27
- type: ssh
@@ -1,104 +0,0 @@
1
- name: concourse
2
-
3
- releases:
4
- - name: concourse
5
- version: 3.4.1
6
- - name: garden-runc
7
- version: 1.6.0
8
-
9
- instance_groups:
10
- - name: web
11
- instances: 1
12
- vm_type: common
13
- azs: [z1]
14
- # vm_extensions: [concourse-lb]
15
- stemcell: trusty
16
- networks:
17
- - name: public
18
- static_ips: <%= @static_ips_concourse %>
19
- default: [dns, gateway]
20
-
21
- jobs:
22
- - name: atc
23
- release: concourse
24
- properties:
25
- bind_port: 8080
26
- external_url: <%= @values['concourse']['url'] %>
27
- basic_auth_username: <%= @values['concourse']['auth_username'] %>
28
- basic_auth_password: ((auth_password))
29
- publicly_viewable: true
30
-
31
- vault:
32
- auth:
33
- backend: token
34
- client_token: ((vault_token))
35
- path_prefix: /concourse
36
- url: "http://<%= @static_ip_vault %>:8200" # expecting Vault to be deployed first
37
-
38
- postgresql_database: &atc_db atc
39
-
40
- - name: tsa
41
- release: concourse
42
- properties: {}
43
-
44
- - name: db
45
- instances: 1
46
- vm_type: common
47
- azs: [z1]
48
- stemcell: trusty
49
- persistent_disk_type: database
50
- networks:
51
- - name: public
52
- default: [dns, gateway]
53
- jobs:
54
- - name: postgresql
55
- release: concourse
56
- properties:
57
- databases:
58
- - name: *atc_db
59
- role: admin
60
- password: ((db_password))
61
-
62
- - name: worker
63
- instances: 1
64
- vm_type: worker
65
- azs: [z1]
66
- stemcell: trusty
67
- networks:
68
- - name: public
69
- default: [dns, gateway]
70
- jobs:
71
- - name: groundcrew
72
- release: concourse
73
- properties:
74
- additional_resource_types:
75
- - type: gcs-resource
76
- image: docker:///frodenas/gcs-resource
77
- - name: baggageclaim
78
- release: concourse
79
- properties: {}
80
- - name: garden
81
- release: garden-runc
82
- properties:
83
- garden:
84
- listen_network: tcp
85
- listen_address: 0.0.0.0:7777
86
- network_mtu: 1432
87
-
88
- update:
89
- canaries: 1
90
- max_in_flight: 1
91
- serial: false
92
- canary_watch_time: 1000-60000
93
- update_watch_time: 1000-60000
94
-
95
- stemcells:
96
- - alias: trusty
97
- os: ubuntu-trusty
98
- version: latest
99
-
100
- variables:
101
- - name: db_password
102
- type: password
103
- - name: auth_password
104
- type: password
@@ -1,3 +0,0 @@
1
- dockerhub-email: "vshatravenko@heliostech.fr"
2
- dockerhub-repo: "valshatravenko/piwik"
3
- git-source-uri: "https://github.com/vshatravenko/piwik"
@@ -1,24 +0,0 @@
1
- ---
2
- resources:
3
- - name: test-image
4
- type: docker-image
5
- source:
6
- email: {{dockerhub-email}}
7
- username: ((dockerhub_username))
8
- password: ((dockerhub_password))
9
- repository: {{dockerhub-repo}}
10
- - name: test-src
11
- type: git
12
- source:
13
- uri: {{git-source-uri}}
14
-
15
- jobs:
16
- - name: test-publish
17
- public: true
18
- serial: true
19
- plan:
20
- - get: test-src
21
- trigger: true
22
- - put: test-image
23
- params:
24
- build: test-src
@@ -1,111 +0,0 @@
1
- ---
2
- name: ingress
3
-
4
- releases:
5
- - name: nginx
6
- version: latest
7
-
8
- instance_groups:
9
- - name: ingress
10
- instances: 1
11
- vm_type: ingress-tiny
12
- azs: [z1]
13
- stemcell: trusty
14
- networks:
15
- - name: public
16
- static_ips: [<%= @private_subnet[13] %>]
17
- default: [dns, gateway]
18
-
19
- - name: vip
20
- static_ips: [<%= @values['ingress']['vip'] %>]
21
-
22
- jobs:
23
- - name: nginx
24
- release: nginx
25
- properties:
26
- nginx_conf: |
27
- worker_processes 1;
28
- error_log /var/vcap/sys/log/nginx/error.log info;
29
- events {
30
- worker_connections 1024;
31
- }
32
-
33
- http {
34
- include /var/vcap/packages/nginx/conf/mime.types;
35
- default_type application/octet-stream;
36
- sendfile on;
37
- keepalive_timeout 65;
38
- server_names_hash_bucket_size 64;
39
-
40
- server {
41
- listen 80;
42
- return 301 https://$host$request_uri;
43
- }
44
- <% ingress_db.each do |hostname, config| %>
45
- <% upstream_name = hostname.gsub('.', '-') %>
46
- upstream <%= upstream_name %> {
47
- <%- config[:upstreams].each do |upstream| -%>
48
- server <%= upstream %>:<%= config[:port] %>;
49
- <%- end -%>
50
- }
51
- server {
52
- listen 443 ssl http2;
53
- server_name <%= hostname %>;
54
- ssl_certificate_key /var/vcap/jobs/nginx/etc/<%= hostname %>/key.pem;
55
- ssl_certificate /var/vcap/jobs/nginx/etc/<%= hostname %>/cert.pem;
56
- ssl on;
57
- ssl_session_cache builtin:1000 shared:SSL:10m;
58
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
59
- ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
60
- ssl_prefer_server_ciphers on;
61
-
62
- access_log /var/vcap/sys/log/nginx/<%= hostname %>-access.log;
63
- error_log /var/vcap/sys/log/nginx/<%= hostname %>-error.log;
64
-
65
- location / {
66
- proxy_http_version 1.1;
67
-
68
- proxy_set_header Host $host;
69
- proxy_set_header X-Real-IP $remote_addr;
70
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
71
- proxy_set_header X-Forwarded-Proto $scheme;
72
- proxy_set_header Upgrade $http_upgrade;
73
- proxy_set_header Connection "upgrade";
74
-
75
- proxy_pass <%= config[:protocol] %>://<%= upstream_name%>;
76
- proxy_read_timeout 90;
77
- }
78
- }
79
- <% end %>
80
- }
81
-
82
- pre_start: |
83
- #!/bin/bash
84
- set -x
85
- source /etc/profile
86
- export HOME=/root
87
- export USER=root
88
- echo "Running pre_start script as ${USER} with ${SHELL} with home ${HOME}"
89
- if [[ ! -f ${HOME}/.acme.sh/acme.sh.env ]]; then
90
- curl -s https://get.acme.sh | sh
91
- fi
92
- source ${HOME}/.acme.sh/acme.sh.env
93
- <% ingress_db.each do |hostname, config| -%>
94
- mkdir -p /var/vcap/jobs/nginx/etc/<%= hostname %>/
95
- ${HOME}/.acme.sh/acme.sh --issue --tls -d <%= hostname %>
96
- ${HOME}/.acme.sh/acme.sh --install-cert -d <%= hostname %> \
97
- --key-file /var/vcap/jobs/nginx/etc/<%= hostname %>/key.pem \
98
- --fullchain-file /var/vcap/jobs/nginx/etc/<%= hostname %>/cert.pem
99
- <%- end -%>
100
-
101
- stemcells:
102
- - alias: trusty
103
- os: ubuntu-trusty
104
- version: latest
105
-
106
- update:
107
- canaries: 1
108
- max_in_flight: 1
109
- serial: false
110
- canary_watch_time: 1000-60000
111
- update_watch_time: 1000-60000
@@ -1,95 +0,0 @@
1
- ---
2
- name: oauth
3
-
4
- releases:
5
- - name: uaa
6
- version: latest
7
-
8
- instance_groups:
9
- - name: uaa
10
- instances: 1
11
- vm_type: common
12
- persistent_disk_type: database
13
- azs: [z1]
14
- stemcell: trusty
15
- networks:
16
- - name: public
17
- static_ips: [<%= @static_ip_oauth %>]
18
- default: [dns, gateway]
19
- jobs:
20
- - name: uaa_postgres
21
- release: uaa
22
- properties:
23
- postgres:
24
- port: 5524
25
- roles:
26
- - tag: admin
27
- name: uaaadmin
28
- password: ((uaa_db_password))
29
- databases:
30
- - tag: uaa
31
- name: uaadb
32
- citext: true
33
- - name: uaa
34
- release: uaa
35
- properties:
36
- login:
37
- saml:
38
- activeKeyId: key2
39
- keys:
40
- key2:
41
- key: ((uaa_saml_certificate.private_key))
42
- passphrase: ((uaa_saml_passphrase))
43
- certificate: ((uaa_saml_certificate.certificate))
44
- uaa:
45
- url: "<%= @values['oauth']['url'] %>"
46
- sslPrivateKey: ((uaa_ssl.private_key))
47
- sslCertificate: ((uaa_ssl.certificate))
48
- jwt:
49
- policy:
50
- active_key_id: key-1
51
- keys:
52
- key-1:
53
- signingKey: ((uaa_saml_certificate.private_key))
54
- uaadb:
55
- uaadb:
56
- address: 127.0.0.1
57
- databases:
58
- - name: uaadb
59
- tag: uaa
60
- db_scheme: postgresql
61
- port: 5524
62
- roles:
63
- - name: uaaadmin
64
- password: ((uaa_db_password))
65
- tag: admin
66
-
67
- update:
68
- canaries: 1
69
- max_in_flight: 1
70
- serial: false
71
- canary_watch_time: 1000-60000
72
- update_watch_time: 1000-60000
73
-
74
- stemcells:
75
- - alias: trusty
76
- name: bosh-google-kvm-ubuntu-trusty-go_agent
77
- version: latest
78
-
79
- variables:
80
- - name: uaa_db_password
81
- type: password
82
- - name: uaa_saml_passphrase
83
- type: password
84
- - name: uaa_ssl
85
- type: certificate
86
- options:
87
- ca: default_ca
88
- common_name: "<%= @values['oauth']['url'] %>"
89
- alternative_names: ["<%= @values['oauth']['url'] %>"]
90
- - name: uaa_saml_certificate
91
- type: certificate
92
- options:
93
- ca: default_ca
94
- common_name: "<%= @values['oauth']['url'] %>"
95
- alternative_names: ["<%= @values['oauth']['url'] %>"]
@@ -1,518 +0,0 @@
1
- # Exporter jobs
2
- - type: replace
3
- path: /instance_groups/name=prometheus/jobs/-
4
- value:
5
- name: bosh_exporter
6
- release: prometheus
7
- properties:
8
- bosh_exporter:
9
- bosh:
10
- url: "((bosh_url))"
11
- username: "((bosh_username))"
12
- password: "((bosh_password))"
13
- ca_cert: "((bosh_ca_cert))"
14
- metrics:
15
- environment: "((metrics_environment))"
16
-
17
- # Prometheus Alerts
18
- - type: replace
19
- path: /instance_groups/name=prometheus/jobs/name=bosh_alerts?/release
20
- value: prometheus
21
-
22
- - type: replace
23
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/rule_files/-
24
- value: /var/vcap/jobs/bosh_alerts/*.alerts
25
-
26
- # Grafana Dashboards
27
- - type: replace
28
- path: /instance_groups/name=grafana/jobs/name=bosh_dashboards?/release
29
- value: prometheus
30
-
31
- - type: replace
32
- path: /instance_groups/name=grafana/jobs/name=grafana/properties/grafana/prometheus/dashboard_files/-
33
- value: /var/vcap/jobs/bosh_dashboards/*.json
34
-
35
- # Prometheus Scrape Config
36
- - type: replace
37
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
38
- value:
39
- job_name: bosh
40
- scrape_interval: 2m
41
- scrape_timeout: 1m
42
- static_configs:
43
- - targets:
44
- - localhost:9190
45
-
46
- # Service Discovery
47
- - type: replace
48
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
49
- value:
50
- job_name: bosh_tsdb
51
- file_sd_configs:
52
- - files:
53
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
54
- relabel_configs:
55
- - source_labels:
56
- - __meta_bosh_job_process_name
57
- regex: bosh_tsdb_exporter
58
- action: keep
59
- - source_labels:
60
- - __address__
61
- regex: "(.*)"
62
- target_label: __address__
63
- replacement: "${1}:9194"
64
-
65
- - type: replace
66
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
67
- value:
68
- job_name: cadvisor
69
- file_sd_configs:
70
- - files:
71
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
72
- relabel_configs:
73
- - source_labels:
74
- - __meta_bosh_job_process_name
75
- regex: cadvisor
76
- action: keep
77
- - source_labels:
78
- - __address__
79
- regex: "(.*)"
80
- target_label: __address__
81
- replacement: "${1}:8080"
82
-
83
- - type: replace
84
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
85
- value:
86
- job_name: cf
87
- scrape_interval: 4m
88
- scrape_timeout: 2m
89
- file_sd_configs:
90
- - files:
91
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
92
- relabel_configs:
93
- - source_labels:
94
- - __meta_bosh_job_process_name
95
- regex: cf_exporter
96
- action: keep
97
- - source_labels:
98
- - __address__
99
- regex: "(.*)"
100
- target_label: __address__
101
- replacement: "${1}:9193"
102
-
103
- - type: replace
104
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
105
- value:
106
- job_name: collectd
107
- file_sd_configs:
108
- - files:
109
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
110
- relabel_configs:
111
- - source_labels:
112
- - __meta_bosh_job_process_name
113
- regex: collectd_exporter
114
- action: keep
115
- - source_labels:
116
- - __address__
117
- regex: "(.*)"
118
- target_label: __address__
119
- replacement: "${1}:9103"
120
-
121
- - type: replace
122
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
123
- value:
124
- job_name: consul
125
- file_sd_configs:
126
- - files:
127
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
128
- relabel_configs:
129
- - source_labels:
130
- - __meta_bosh_job_process_name
131
- regex: consul_exporter
132
- action: keep
133
- - source_labels:
134
- - __address__
135
- regex: "(.*)"
136
- target_label: __address__
137
- replacement: "${1}:9107"
138
-
139
- - type: replace
140
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
141
- value:
142
- job_name: elasticsearch
143
- file_sd_configs:
144
- - files:
145
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
146
- relabel_configs:
147
- - source_labels:
148
- - __meta_bosh_job_process_name
149
- regex: elasticsearch_exporter
150
- action: keep
151
- - source_labels:
152
- - __address__
153
- regex: "(.*)"
154
- target_label: __address__
155
- replacement: "${1}:9114"
156
-
157
- - type: replace
158
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
159
- value:
160
- job_name: firehose
161
- file_sd_configs:
162
- - files:
163
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
164
- relabel_configs:
165
- - source_labels:
166
- - __meta_bosh_job_process_name
167
- regex: firehose_exporter
168
- action: keep
169
- - source_labels:
170
- - __address__
171
- regex: "(.*)"
172
- target_label: __address__
173
- replacement: "${1}:9186"
174
-
175
- - type: replace
176
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
177
- value:
178
- job_name: github
179
- file_sd_configs:
180
- - files:
181
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
182
- relabel_configs:
183
- - source_labels:
184
- - __meta_bosh_job_process_name
185
- regex: github_exporter
186
- action: keep
187
- - source_labels:
188
- - __address__
189
- regex: "(.*)"
190
- target_label: __address__
191
- replacement: "${1}:9171"
192
-
193
- - type: replace
194
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
195
- value:
196
- job_name: grafana
197
- file_sd_configs:
198
- - files:
199
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
200
- relabel_configs:
201
- - source_labels:
202
- - __meta_bosh_job_process_name
203
- regex: grafana
204
- action: keep
205
- - source_labels:
206
- - __address__
207
- regex: "(.*)"
208
- target_label: __address__
209
- replacement: "${1}:3000"
210
-
211
- - type: replace
212
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
213
- value:
214
- job_name: graphite
215
- file_sd_configs:
216
- - files:
217
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
218
- relabel_configs:
219
- - source_labels:
220
- - __meta_bosh_job_process_name
221
- regex: graphite_exporter
222
- action: keep
223
- - source_labels:
224
- - __address__
225
- regex: "(.*)"
226
- target_label: __address__
227
- replacement: "${1}:9108"
228
-
229
- - type: replace
230
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
231
- value:
232
- job_name: haproxy
233
- file_sd_configs:
234
- - files:
235
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
236
- relabel_configs:
237
- - source_labels:
238
- - __meta_bosh_job_process_name
239
- regex: haproxy_exporter
240
- action: keep
241
- - source_labels:
242
- - __address__
243
- regex: "(.*)"
244
- target_label: __address__
245
- replacement: "${1}:9101"
246
-
247
- - type: replace
248
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
249
- value:
250
- job_name: influxdb
251
- file_sd_configs:
252
- - files:
253
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
254
- relabel_configs:
255
- - source_labels:
256
- - __meta_bosh_job_process_name
257
- regex: influxdb_exporter
258
- action: keep
259
- - source_labels:
260
- - __address__
261
- regex: "(.*)"
262
- target_label: __address__
263
- replacement: "${1}:9122"
264
-
265
- - type: replace
266
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
267
- value:
268
- job_name: kubernetes
269
- file_sd_configs:
270
- - files:
271
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
272
- relabel_configs:
273
- - source_labels:
274
- - __meta_bosh_job_process_name
275
- regex: kube_state_metrics_exporter
276
- action: keep
277
- - source_labels:
278
- - __address__
279
- regex: "(.*)"
280
- target_label: __address__
281
- replacement: "${1}:9188"
282
-
283
- - type: replace
284
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
285
- value:
286
- job_name: memcached
287
- file_sd_configs:
288
- - files:
289
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
290
- relabel_configs:
291
- - source_labels:
292
- - __meta_bosh_job_process_name
293
- regex: memcached_exporter
294
- action: keep
295
- - source_labels:
296
- - __address__
297
- regex: "(.*)"
298
- target_label: __address__
299
- replacement: "${1}:9150"
300
-
301
- - type: replace
302
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
303
- value:
304
- job_name: mongodb
305
- file_sd_configs:
306
- - files:
307
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
308
- relabel_configs:
309
- - source_labels:
310
- - __meta_bosh_job_process_name
311
- regex: mongodb_exporter
312
- action: keep
313
- - source_labels:
314
- - __address__
315
- regex: "(.*)"
316
- target_label: __address__
317
- replacement: "${1}:9001"
318
-
319
- - type: replace
320
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
321
- value:
322
- job_name: mysql
323
- file_sd_configs:
324
- - files:
325
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
326
- relabel_configs:
327
- - source_labels:
328
- - __meta_bosh_job_process_name
329
- regex: mysqld_exporter
330
- action: keep
331
- - source_labels:
332
- - __address__
333
- regex: "(.*)"
334
- target_label: __address__
335
- replacement: "${1}:9104"
336
-
337
- - type: replace
338
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
339
- value:
340
- job_name: nats
341
- file_sd_configs:
342
- - files:
343
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
344
- relabel_configs:
345
- - source_labels:
346
- - __meta_bosh_job_process_name
347
- regex: nats_exporter
348
- action: keep
349
- - source_labels:
350
- - __address__
351
- regex: "(.*)"
352
- target_label: __address__
353
- replacement: "${1}:9118"
354
-
355
- - type: replace
356
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
357
- value:
358
- job_name: node
359
- file_sd_configs:
360
- - files:
361
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
362
- relabel_configs:
363
- - source_labels:
364
- - __meta_bosh_job_process_name
365
- regex: node_exporter
366
- action: keep
367
- - source_labels:
368
- - __address__
369
- regex: "(.*)"
370
- target_label: __address__
371
- replacement: "${1}:9100"
372
-
373
- - type: replace
374
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
375
- value:
376
- job_name: postgres
377
- file_sd_configs:
378
- - files:
379
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
380
- relabel_configs:
381
- - source_labels:
382
- - __meta_bosh_job_process_name
383
- regex: postgres_exporter
384
- action: keep
385
- - source_labels:
386
- - __address__
387
- regex: "(.*)"
388
- target_label: __address__
389
- replacement: "${1}:9187"
390
-
391
- - type: replace
392
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/job_name=prometheus
393
- value:
394
- job_name: prometheus
395
- file_sd_configs:
396
- - files:
397
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
398
- relabel_configs:
399
- - source_labels:
400
- - __meta_bosh_job_process_name
401
- regex: prometheus
402
- action: keep
403
- - source_labels:
404
- - __address__
405
- regex: "(.*)"
406
- target_label: __address__
407
- replacement: "${1}:9090"
408
-
409
- - type: replace
410
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
411
- value:
412
- job_name: pushgateway
413
- honor_labels: true
414
- file_sd_configs:
415
- - files:
416
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
417
- relabel_configs:
418
- - source_labels:
419
- - __meta_bosh_job_process_name
420
- regex: pushgateway
421
- action: keep
422
- - source_labels:
423
- - __address__
424
- regex: "(.*)"
425
- target_label: __address__
426
- replacement: "${1}:9091"
427
-
428
- - type: replace
429
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
430
- value:
431
- job_name: rabbitmq
432
- file_sd_configs:
433
- - files:
434
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
435
- relabel_configs:
436
- - source_labels:
437
- - __meta_bosh_job_process_name
438
- regex: rabbitmq_exporter
439
- action: keep
440
- - source_labels:
441
- - __address__
442
- regex: "(.*)"
443
- target_label: __address__
444
- replacement: "${1}:9125"
445
-
446
- - type: replace
447
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
448
- value:
449
- job_name: redis
450
- file_sd_configs:
451
- - files:
452
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
453
- relabel_configs:
454
- - source_labels:
455
- - __meta_bosh_job_process_name
456
- regex: redis_exporter
457
- action: keep
458
- - source_labels:
459
- - __address__
460
- regex: "(.*)"
461
- target_label: __address__
462
- replacement: "${1}:9121"
463
-
464
- - type: replace
465
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
466
- value:
467
- job_name: shield
468
- scrape_interval: 4m
469
- scrape_timeout: 2m
470
- file_sd_configs:
471
- - files:
472
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
473
- relabel_configs:
474
- - source_labels:
475
- - __meta_bosh_job_process_name
476
- regex: shield_exporter
477
- action: keep
478
- - source_labels:
479
- - __address__
480
- regex: "(.*)"
481
- target_label: __address__
482
- replacement: "${1}:9179"
483
-
484
- - type: replace
485
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
486
- value:
487
- job_name: stackdriver
488
- file_sd_configs:
489
- - files:
490
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
491
- relabel_configs:
492
- - source_labels:
493
- - __meta_bosh_job_process_name
494
- regex: stackdriver_exporter
495
- action: keep
496
- - source_labels:
497
- - __address__
498
- regex: "(.*)"
499
- target_label: __address__
500
- replacement: "${1}:9255"
501
-
502
- - type: replace
503
- path: /instance_groups/name=prometheus/jobs/name=prometheus/properties/prometheus/scrape_configs/-
504
- value:
505
- job_name: statsd
506
- file_sd_configs:
507
- - files:
508
- - "/var/vcap/store/bosh_exporter/bosh_target_groups.json"
509
- relabel_configs:
510
- - source_labels:
511
- - __meta_bosh_job_process_name
512
- regex: statsd_exporter
513
- action: keep
514
- - source_labels:
515
- - __address__
516
- regex: "(.*)"
517
- target_label: __address__
518
- replacement: "${1}:9102"