Browse Source

Add annotations for prometheus

Change-Id: I3af86b4017a33ad05ccdba77b405d4303180c5d7
changes/37/422537/2
Bartosz Kupidura 2 years ago
parent
commit
51b1c16337
2 changed files with 10 additions and 2 deletions
  1. 5
    1
      service/glance-api.yaml
  2. 5
    1
      service/glance-registry.yaml

+ 5
- 1
service/glance-api.yaml View File

@@ -1,8 +1,12 @@
1
-dsl_version: 0.1.0
1
+dsl_version: 0.4.0
2 2
 service:
3 3
   name: glance-api
4 4
   ports:
5 5
     - {{ glance.api_port }}
6
+  annotations:
7
+    service:
8
+      prometheus.io/probe: "true"
9
+      prometheus.io/probe_path: "/healthcheck"
6 10
   containers:
7 11
     - name: glance-api
8 12
       image: glance-api

+ 5
- 1
service/glance-registry.yaml View File

@@ -1,8 +1,12 @@
1
-dsl_version: 0.1.0
1
+dsl_version: 0.4.0
2 2
 service:
3 3
   name: glance-registry
4 4
   ports:
5 5
     - {{ glance.registry_port }}
6
+  annotations:
7
+    service:
8
+      prometheus.io/probe: "true"
9
+      prometheus.io/probe_path: "/healthcheck"
6 10
   containers:
7 11
     - name: glance-registry
8 12
       image: glance-registry

Loading…
Cancel
Save