Skip to content

Commit

Permalink
Merge pull request #25 from tombatchelor/EXPERIMENTAL-Diff-Trace-Coll…
Browse files Browse the repository at this point in the history
…ection

Added Pod UID to Prometheus metrics
  • Loading branch information
tombatchelor authored Nov 13, 2019
2 parents 339c2d2 + e167e82 commit 5035bec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 4 additions & 6 deletions kubernetes/cars_app-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: web-server
image: tombatchelor/cars_web:2.0
image: tombatchelor/cars_web:2.1
ports:
- name: cars-web-port
containerPort: 80
Expand Down Expand Up @@ -45,7 +45,6 @@ spec:
containers:
- name: app-server
image: tombatchelor/cars:2.1-leak
imagePullPolicy: Always
ports:
- name: cars-app-port
containerPort: 8080
Expand Down Expand Up @@ -277,7 +276,6 @@ spec:
serviceAccountName: marshaller
containers:
- name: 4leak
imagePullPolicy: Always
image: tombatchelor/demo_marshaller:2.3
env:
- name: NEW_YAML
Expand All @@ -297,12 +295,10 @@ spec:
serviceAccountName: marshaller
containers:
- name: 4noleak
imagePullPolicy: Always
image: tombatchelor/demo_marshaller:2.3
env:
- name: NEW_YAML
value: 4_no_leak
- name: NAMESPACE
restartPolicy: OnFailure
---
apiVersion: batch/v1beta1
Expand All @@ -318,7 +314,6 @@ spec:
serviceAccountName: marshaller
containers:
- name: 2noleak
imagePullPolicy: Always
image: tombatchelor/demo_marshaller:2.3
env:
- name: NEW_YAML
Expand Down Expand Up @@ -516,6 +511,9 @@ data:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: cars_app
- source_labels: [__meta_kubernetes_pod_uid]
action: replace
target_label: kubernetes_pod_uid
- job_name: car-insurance
metrics_path: /metrics
kubernetes_sd_configs:
Expand Down
5 changes: 4 additions & 1 deletion kubernetes/cars_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: web-server
image: tombatchelor/cars_web:1.6
image: tombatchelor/cars_web:2.1
imagePullPolicy: Always
ports:
- name: cars-web-port
Expand Down Expand Up @@ -525,6 +525,9 @@ data:
- source_labels: [__meta_kubernetes_pod_label_app]
action: keep
regex: cars_app
- source_labels: [__meta_kubernetes_pod_uid]
action: replace
target_label: kubernetes_pod_uid
- job_name: car-insurance
metrics_path: /metrics
kubernetes_sd_configs:
Expand Down

0 comments on commit 5035bec

Please sign in to comment.