kite 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +130 -66
- data/LICENSE.md +202 -0
- data/README.md +35 -11
- data/bin/concourse/out +16 -20
- data/docs/kite-concourse-resource.md +45 -0
- data/kite.gemspec +1 -0
- data/lib/kite.rb +3 -1
- data/lib/kite/cloud.rb +1 -0
- data/lib/kite/core.rb +8 -2
- data/lib/kite/generate.rb +12 -46
- data/lib/kite/helpers.rb +0 -72
- data/lib/kite/helpers/concourse.rb +3 -2
- data/lib/kite/module.rb +76 -0
- data/lib/kite/terraform.rb +45 -0
- data/lib/kite/version.rb +1 -1
- data/tpl/aws/environment/main.tf.tt +5 -0
- data/tpl/aws/environment/s3.tf.tt +13 -0
- data/tpl/gcp/environment/gcs.tf.tt +18 -0
- data/tpl/gcp/environment/main.tf.tt +5 -0
- data/tpl/gcp/environment/outputs.tf.tt +5 -0
- data/tpl/service/%output_path%/pipelines/review.yml.tt +55 -37
- data/tpl/service/%output_path%/pipelines/tasks/create-pull-requests-tag.yml.tt +1 -1
- data/tpl/service/%output_path%/pipelines/tasks/create-repository-tag.yml.tt +1 -1
- data/tpl/service/%output_path%/pipelines/tasks/run-unit.yml.tt +7 -0
- data/tpl/service/Makefile.tt +11 -7
- data/tpl/service/docs/getting-started.md +73 -0
- data/tpl/service/docs/service.md +101 -0
- data/tpl/skel/Gemfile.tt +0 -9
- data/tpl/skel/config/cloud.yml +11 -66
- metadata +29 -88
- data/lib/kite/render.rb +0 -116
- data/tpl/aws/README.md +0 -52
- data/tpl/aws/bin/base/bootstrap.sh +0 -35
- data/tpl/aws/bin/base/cleanup.sh.tt +0 -19
- data/tpl/aws/bin/base/set-env.sh.tt +0 -7
- data/tpl/aws/bin/base/setup-tunnel.sh.tt +0 -4
- data/tpl/aws/bin/bosh-install.sh.tt +0 -23
- data/tpl/aws/bin/concourse-deploy.sh.tt +0 -14
- data/tpl/aws/bin/ingress-deploy.sh.tt +0 -7
- data/tpl/aws/bin/ingress-update.sh.tt +0 -7
- data/tpl/aws/bin/kops-delete.sh.erb +0 -5
- data/tpl/aws/bin/kops-deploy.sh.erb +0 -11
- data/tpl/aws/bin/oauth-deploy.sh.tt +0 -17
- data/tpl/aws/bin/prometheus-deploy.sh.tt +0 -23
- data/tpl/aws/bin/vault-deploy.sh.tt +0 -10
- data/tpl/aws/bosh-vars.yml.erb +0 -12
- data/tpl/aws/config/oauth.yml +0 -59
- data/tpl/aws/deployments/bosh/bosh.yml +0 -144
- data/tpl/aws/deployments/bosh/cloud-config.yml.tt +0 -86
- data/tpl/aws/deployments/bosh/cpi.yml +0 -98
- data/tpl/aws/deployments/bosh/jumpbox-user.yml +0 -27
- data/tpl/aws/deployments/concourse/concourse.yml.tt +0 -98
- data/tpl/aws/deployments/ingress/ingress.yml.erb +0 -78
- data/tpl/aws/deployments/oauth/oauth.yml.tt +0 -95
- data/tpl/aws/deployments/prometheus/monitor-bosh.yml +0 -518
- data/tpl/aws/deployments/prometheus/monitor-kubernetes.yml +0 -30
- data/tpl/aws/deployments/prometheus/prometheus.yml.tt +0 -184
- data/tpl/aws/deployments/vault/vault.yml.erb +0 -38
- data/tpl/aws/docs/bosh.md +0 -31
- data/tpl/aws/docs/concourse.md +0 -41
- data/tpl/aws/docs/ingress.md +0 -14
- data/tpl/aws/docs/kops.md +0 -35
- data/tpl/aws/docs/oauth.md +0 -24
- data/tpl/aws/docs/prometheus.md +0 -31
- data/tpl/aws/docs/vault.md +0 -35
- data/tpl/aws/terraform/kite_bucket.tf +0 -8
- data/tpl/aws/terraform/main.tf.tt +0 -36
- data/tpl/aws/terraform/network.tf.tt +0 -252
- data/tpl/aws/terraform/outputs.tf +0 -19
- data/tpl/aws/terraform/terraform.tfvars.tt +0 -21
- data/tpl/aws/terraform/variables.tf +0 -73
- data/tpl/gcp/README.md +0 -54
- data/tpl/gcp/bin/base/bootstrap.sh +0 -35
- data/tpl/gcp/bin/base/cleanup.sh.tt +0 -20
- data/tpl/gcp/bin/base/set-env.sh.tt +0 -10
- data/tpl/gcp/bin/base/setup-tunnel.sh.tt +0 -13
- data/tpl/gcp/bin/bosh-install.sh.tt +0 -22
- data/tpl/gcp/bin/concourse-deploy.sh.tt +0 -14
- data/tpl/gcp/bin/ingress-deploy.sh.tt +0 -7
- data/tpl/gcp/bin/ingress-update.sh.tt +0 -7
- data/tpl/gcp/bin/oauth-deploy.sh.tt +0 -19
- data/tpl/gcp/bin/prometheus-deploy.sh.tt +0 -23
- data/tpl/gcp/bin/vault-deploy.sh.tt +0 -10
- data/tpl/gcp/bosh-vars.yml.erb +0 -9
- data/tpl/gcp/config/oauth.yml +0 -59
- data/tpl/gcp/deployments/bosh/bosh.yml +0 -144
- data/tpl/gcp/deployments/bosh/cloud-config.yml.tt +0 -73
- data/tpl/gcp/deployments/bosh/cpi.yml +0 -69
- data/tpl/gcp/deployments/bosh/jumpbox-user.yml +0 -27
- data/tpl/gcp/deployments/concourse/concourse.yml.tt +0 -104
- data/tpl/gcp/deployments/concourse/test/test-credentials.yml +0 -3
- data/tpl/gcp/deployments/concourse/test/test-pipeline.yml +0 -24
- data/tpl/gcp/deployments/ingress/ingress.yml.erb +0 -111
- data/tpl/gcp/deployments/oauth/oauth.yml.tt +0 -95
- data/tpl/gcp/deployments/prometheus/monitor-bosh.yml +0 -518
- data/tpl/gcp/deployments/prometheus/monitor-kubernetes.yml +0 -30
- data/tpl/gcp/deployments/prometheus/prometheus.yml +0 -183
- data/tpl/gcp/deployments/vault/vault.yml.erb +0 -37
- data/tpl/gcp/docs/bosh.md +0 -36
- data/tpl/gcp/docs/concourse.md +0 -41
- data/tpl/gcp/docs/ingress.md +0 -12
- data/tpl/gcp/docs/oauth.md +0 -24
- data/tpl/gcp/docs/prometheus.md +0 -27
- data/tpl/gcp/docs/vault.md +0 -36
- data/tpl/gcp/terraform/gcs.tf.tt +0 -18
- data/tpl/gcp/terraform/main.tf +0 -70
- data/tpl/gcp/terraform/network.tf +0 -52
- data/tpl/gcp/terraform/outputs.tf +0 -7
- data/tpl/gcp/terraform/terraform.tfvars.tt +0 -15
- data/tpl/gcp/terraform/variables.tf +0 -37
- data/tpl/service/%output_path%/pipelines/tasks/helm-deploy.yml.tt +0 -22
- data/tpl/service/%output_path%/pipelines/tasks/run-master-tests.yml.tt +0 -12
- data/tpl/service/%output_path%/pipelines/tasks/run-pr-tests.yml.tt +0 -12
- data/tpl/skel/docs/index.md.tt +0 -0
- data/tpl/skel/docs/quickstart.md.tt +0 -0
@@ -1,98 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- type: replace
|
3
|
-
path: /releases/-
|
4
|
-
value:
|
5
|
-
name: bosh-aws-cpi
|
6
|
-
version: 65
|
7
|
-
url: https://bosh.io/d/github.com/cloudfoundry-incubator/bosh-aws-cpi-release?v=65
|
8
|
-
sha1: 26b3a5c43e6f82594a373309a495660d6db26254
|
9
|
-
|
10
|
-
- type: replace
|
11
|
-
path: /resource_pools/name=vms/stemcell?
|
12
|
-
value:
|
13
|
-
url: https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-trusty-go_agent?v=3421.9
|
14
|
-
sha1: 316a699d44f49d69493b1545d4addd17b78b5840
|
15
|
-
|
16
|
-
# Configure AWS sizes
|
17
|
-
- type: replace
|
18
|
-
path: /resource_pools/name=vms/cloud_properties?
|
19
|
-
value:
|
20
|
-
instance_type: m4.xlarge
|
21
|
-
ephemeral_disk: {size: 25_000, type: gp2}
|
22
|
-
availability_zone: ((az))
|
23
|
-
|
24
|
-
- type: replace
|
25
|
-
path: /disk_pools/name=disks/cloud_properties?
|
26
|
-
value: {type: gp2}
|
27
|
-
|
28
|
-
- type: replace
|
29
|
-
path: /networks/name=default/subnets/0/cloud_properties?
|
30
|
-
value: {subnet: ((subnet_id))}
|
31
|
-
|
32
|
-
# Enable registry job
|
33
|
-
- type: replace
|
34
|
-
path: /instance_groups/name=bosh/jobs/-
|
35
|
-
value:
|
36
|
-
name: registry
|
37
|
-
release: bosh
|
38
|
-
|
39
|
-
- type: replace
|
40
|
-
path: /instance_groups/name=bosh/properties/registry?
|
41
|
-
value:
|
42
|
-
address: ((internal_ip))
|
43
|
-
host: ((internal_ip))
|
44
|
-
db: # todo remove
|
45
|
-
host: 127.0.0.1
|
46
|
-
user: postgres
|
47
|
-
password: ((postgres_password))
|
48
|
-
database: bosh
|
49
|
-
adapter: postgres
|
50
|
-
http:
|
51
|
-
user: registry
|
52
|
-
password: ((registry_password))
|
53
|
-
port: 25777
|
54
|
-
username: registry
|
55
|
-
password: ((registry_password))
|
56
|
-
port: 25777
|
57
|
-
|
58
|
-
# Add CPI job
|
59
|
-
- type: replace
|
60
|
-
path: /instance_groups/name=bosh/jobs/-
|
61
|
-
value: &cpi_job
|
62
|
-
name: aws_cpi
|
63
|
-
release: bosh-aws-cpi
|
64
|
-
|
65
|
-
- type: replace
|
66
|
-
path: /instance_groups/name=bosh/properties/director/cpi_job?
|
67
|
-
value: aws_cpi
|
68
|
-
|
69
|
-
- type: replace
|
70
|
-
path: /cloud_provider/template?
|
71
|
-
value: *cpi_job
|
72
|
-
|
73
|
-
- type: replace
|
74
|
-
path: /instance_groups/name=bosh/properties/aws?
|
75
|
-
value: &aws
|
76
|
-
access_key_id: ((access_key_id))
|
77
|
-
secret_access_key: ((secret_access_key))
|
78
|
-
default_key_name: ((default_key_name))
|
79
|
-
default_security_groups: ((default_security_groups))
|
80
|
-
region: ((region))
|
81
|
-
|
82
|
-
- type: replace
|
83
|
-
path: /cloud_provider/ssh_tunnel?
|
84
|
-
value:
|
85
|
-
host: ((internal_ip))
|
86
|
-
port: 22
|
87
|
-
user: vcap
|
88
|
-
private_key: ((private_key))
|
89
|
-
|
90
|
-
- type: replace
|
91
|
-
path: /cloud_provider/properties/aws?
|
92
|
-
value: *aws
|
93
|
-
|
94
|
-
- type: replace
|
95
|
-
path: /variables/-
|
96
|
-
value:
|
97
|
-
name: registry_password
|
98
|
-
type: password
|
@@ -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,98 +0,0 @@
|
|
1
|
-
name: concourse
|
2
|
-
|
3
|
-
releases:
|
4
|
-
- name: concourse
|
5
|
-
version: latest
|
6
|
-
- name: garden-runc
|
7
|
-
version: latest
|
8
|
-
|
9
|
-
instance_groups:
|
10
|
-
- name: web
|
11
|
-
instances: 1
|
12
|
-
vm_type: concourse_web
|
13
|
-
azs: [z1]
|
14
|
-
# vm_extensions: [concourse-lb]
|
15
|
-
stemcell: trusty
|
16
|
-
networks:
|
17
|
-
- name: platform_net
|
18
|
-
default: [dns, gateway]
|
19
|
-
jobs:
|
20
|
-
- name: atc
|
21
|
-
release: concourse
|
22
|
-
properties:
|
23
|
-
bind_port: 80
|
24
|
-
external_url: <%= @values['concourse']['url'] %>
|
25
|
-
basic_auth_username: <%= @values['concourse']['auth_username'] %>
|
26
|
-
basic_auth_password: ((auth_password))
|
27
|
-
publicly_viewable: true
|
28
|
-
|
29
|
-
vault:
|
30
|
-
auth:
|
31
|
-
backend: token
|
32
|
-
client_token: ((vault_token))
|
33
|
-
path_prefix: /concourse
|
34
|
-
url: "http://<%= @private_subnet[11] %>:8200" # assuming Vault is deployed first
|
35
|
-
|
36
|
-
postgresql_database: &atc_db atc
|
37
|
-
|
38
|
-
- name: tsa
|
39
|
-
release: concourse
|
40
|
-
properties: {}
|
41
|
-
|
42
|
-
- name: db
|
43
|
-
instances: 1
|
44
|
-
vm_type: concourse_db
|
45
|
-
azs: [z1]
|
46
|
-
stemcell: trusty
|
47
|
-
persistent_disk_type: large
|
48
|
-
networks: [{name: platform_net}]
|
49
|
-
jobs:
|
50
|
-
- name: postgresql
|
51
|
-
release: concourse
|
52
|
-
properties:
|
53
|
-
databases:
|
54
|
-
- name: *atc_db
|
55
|
-
role: admin
|
56
|
-
password: ((db_password))
|
57
|
-
|
58
|
-
- name: worker
|
59
|
-
instances: 1
|
60
|
-
vm_type: concourse_worker
|
61
|
-
azs: [z1]
|
62
|
-
stemcell: trusty
|
63
|
-
networks: [{name: platform_net}]
|
64
|
-
jobs:
|
65
|
-
- name: groundcrew
|
66
|
-
release: concourse
|
67
|
-
properties:
|
68
|
-
additional_resource_types:
|
69
|
-
- type: gcs-resource
|
70
|
-
image: docker:///frodenas/gcs-resource
|
71
|
-
- name: baggageclaim
|
72
|
-
release: concourse
|
73
|
-
properties: {}
|
74
|
-
- name: garden
|
75
|
-
release: garden-runc
|
76
|
-
properties:
|
77
|
-
garden:
|
78
|
-
listen_network: tcp
|
79
|
-
listen_address: 0.0.0.0:7777
|
80
|
-
network_mtu: 1432
|
81
|
-
|
82
|
-
update:
|
83
|
-
canaries: 1
|
84
|
-
max_in_flight: 1
|
85
|
-
serial: false
|
86
|
-
canary_watch_time: 1000-60000
|
87
|
-
update_watch_time: 1000-60000
|
88
|
-
|
89
|
-
stemcells:
|
90
|
-
- alias: trusty
|
91
|
-
os: ubuntu-trusty
|
92
|
-
version: latest
|
93
|
-
|
94
|
-
variables:
|
95
|
-
- name: db_password
|
96
|
-
type: password
|
97
|
-
- name: auth_password
|
98
|
-
type: password
|
@@ -1,78 +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-default
|
12
|
-
azs: [z1]
|
13
|
-
stemcell: trusty
|
14
|
-
networks:
|
15
|
-
- name: platform_dmz
|
16
|
-
default: [dns, gateway]
|
17
|
-
- name: vip
|
18
|
-
static_ips: [<%= @values['ingress']['vip'] %>]
|
19
|
-
|
20
|
-
jobs:
|
21
|
-
- name: nginx
|
22
|
-
release: nginx
|
23
|
-
properties:
|
24
|
-
nginx_conf: |
|
25
|
-
worker_processes 1;
|
26
|
-
error_log /var/vcap/sys/log/nginx/error.log info;
|
27
|
-
events {
|
28
|
-
worker_connections 1024;
|
29
|
-
}
|
30
|
-
|
31
|
-
http {
|
32
|
-
include /var/vcap/packages/nginx/conf/mime.types;
|
33
|
-
default_type application/octet-stream;
|
34
|
-
sendfile on;
|
35
|
-
keepalive_timeout 65;
|
36
|
-
server_names_hash_bucket_size 64;
|
37
|
-
|
38
|
-
server {
|
39
|
-
listen 80;
|
40
|
-
}
|
41
|
-
<% ingress_db.each do |hostname, config| %>
|
42
|
-
<% upstream_name = hostname.gsub('.', '-') %>
|
43
|
-
upstream <%= upstream_name %> {
|
44
|
-
<%- config[:upstreams].each do |upstream| -%>
|
45
|
-
server <%= upstream %>:<%= config[:port] %>;
|
46
|
-
<%- end -%>
|
47
|
-
}
|
48
|
-
server {
|
49
|
-
listen 80;
|
50
|
-
server_name <%= hostname %>;
|
51
|
-
|
52
|
-
access_log /var/vcap/sys/log/nginx/<%= hostname %>-access.log;
|
53
|
-
error_log /var/vcap/sys/log/nginx/<%= hostname %>-error.log;
|
54
|
-
|
55
|
-
location / {
|
56
|
-
proxy_set_header Host $host;
|
57
|
-
proxy_set_header X-Real-IP $remote_addr;
|
58
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
59
|
-
proxy_set_header X-Forwarded-Proto $scheme;
|
60
|
-
|
61
|
-
proxy_pass <%= config[:protocol] %>://<%= upstream_name %>;
|
62
|
-
proxy_read_timeout 90;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
<% end %>
|
66
|
-
}
|
67
|
-
|
68
|
-
stemcells:
|
69
|
-
- alias: trusty
|
70
|
-
os: ubuntu-trusty
|
71
|
-
version: latest
|
72
|
-
|
73
|
-
update:
|
74
|
-
canaries: 1
|
75
|
-
max_in_flight: 1
|
76
|
-
serial: false
|
77
|
-
canary_watch_time: 1000-60000
|
78
|
-
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: default
|
12
|
-
persistent_disk_type: default
|
13
|
-
azs: [z1]
|
14
|
-
stemcell: trusty
|
15
|
-
networks:
|
16
|
-
- name: platform_net
|
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-aws-xen-hvm-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"
|