Browse Source

Add annotations for etcd

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

Change-Id: Iba5768921397736c8f9b6aeb97d80cbf5711b1ff
changes/32/415432/1
Bartosz Kupidura 2 years ago
parent
commit
e2e6dc2b50
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      service/etcd.yaml

+ 5
- 1
service/etcd.yaml View File

@@ -1,9 +1,13 @@
1
-dsl_version: 0.1.0
1
+dsl_version: 0.4.0
2 2
 service:
3 3
   name: etcd
4 4
   ports:
5 5
     - {{ etcd.client_port }}
6 6
     - {{ etcd.server_port }}
7
+  annotations:
8
+    service:
9
+      prometheus.io/port: "{{ etcd.client_port.cont }}"
10
+      prometheus.io/scrape: "true"
7 11
   containers:
8 12
     - name: etcd
9 13
       image: etcd

Loading…
Cancel
Save