jaeger: fix prometheus scrape configuration (#5979)

Fixes #5976

Currently, Jaeger and Collector components in jaeger extension
do not actually support metrics scraping because relevant
ports are not exposed and Prometheus annotations are not set
correctly.

This PR fixes those values to be the correct ones.

By default, Prometheus in `linkerd-viz` does not actually
scrape jaeger metrics, and additional configuration
has to be applied to do the same.

Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
This commit is contained in:
Tarun Pothulapati 2021-04-01 22:45:47 +05:30 committed by GitHub
parent 586b08314a
commit cceaed8da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,7 @@ spec:
- containerPort: 55678
- containerPort: 9411
- containerPort: 14268
- containerPort: 8888
readinessProbe:
httpGet:
path: /
@ -153,7 +154,7 @@ spec:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "8888"
prometheus.io/port: "14269"
prometheus.io/scrape: "true"
labels:
component: jaeger
@ -165,6 +166,8 @@ spec:
imagePullPolicy: {{.Values.jaeger.image.pullPolicy}}
name: jaeger
ports:
- containerPort: 14269
name: admin
- containerPort: 14268
name: collection
- containerPort: 16686