fix(otel): Use pod ip
This commit is contained in:
@@ -21,7 +21,7 @@ config:
|
|||||||
tls:
|
tls:
|
||||||
insecure: true
|
insecure: true
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: localhost:8888
|
endpoint: ${env:MY_POD_IP}:8888
|
||||||
namespace: otel
|
namespace: otel
|
||||||
# otlphttp/metrics:
|
# otlphttp/metrics:
|
||||||
# endpoint: http://prom-prometheus.prometheus:9090/api/v1/otlp
|
# endpoint: http://prom-prometheus.prometheus:9090/api/v1/otlp
|
||||||
@@ -48,7 +48,7 @@ config:
|
|||||||
exporters: [otlp]
|
exporters: [otlp]
|
||||||
# exporters: [otlphttp/traces,debug/traces]
|
# exporters: [otlphttp/traces,debug/traces]
|
||||||
metrics:
|
metrics:
|
||||||
receivers: [otlp] # prometheus/collector
|
receivers: [otlp,prometheus] # prometheus/collector
|
||||||
processors: [batch]
|
processors: [batch]
|
||||||
exporters: [prometheus]
|
exporters: [prometheus]
|
||||||
# exporters: [otlphttp/metrics,debug/metrics]
|
# exporters: [otlphttp/metrics,debug/metrics]
|
||||||
@@ -63,6 +63,10 @@ ports:
|
|||||||
containerPort: 8888
|
containerPort: 8888
|
||||||
servicePort: 8888
|
servicePort: 8888
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
# presets:
|
# presets:
|
||||||
# logsCollection:
|
# logsCollection:
|
||||||
# enabled: true
|
# enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user