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