Add annotations for etcd

Those annotations will be used for prometheus auto-discovery.
Bump DSL version to 0.4.0

Change-Id: Iba5768921397736c8f9b6aeb97d80cbf5711b1ff
This commit is contained in:
Bartosz Kupidura 2016-12-28 11:24:24 +01:00
parent 288c06626e
commit e2e6dc2b50
1 changed files with 5 additions and 1 deletions

View File

@ -1,9 +1,13 @@
dsl_version: 0.1.0
dsl_version: 0.4.0
service:
name: etcd
ports:
- {{ etcd.client_port }}
- {{ etcd.server_port }}
annotations:
service:
prometheus.io/port: "{{ etcd.client_port.cont }}"
prometheus.io/scrape: "true"
containers:
- name: etcd
image: etcd