-
Hello 👋 ComponentsProblemI can't see metrics from the Collector in the Prometheus UI. I suspect that my configuration is wrong, making Prometheus unable to scrape them, but I can't figure out what's wrong. SetupI'm using: to create a simple example of receiving OTLP telemetry data and export it to Jaeger and Prometheus. I have a following override of mode: "deployment"
fullnameOverride: "otel-collector"
presets:
kubernetesAttributes:
enabled: true
config:
receivers:
jaeger: null
zipkin: null
exporters:
debug:
verbosity: detailed
otlp/jaeger:
endpoint: jaeger-collector.default.svc.cluster.local:14250
tls:
insecure: true
prometheus:
endpoint: ${env:MY_POD_IP}:8889
service:
pipelines:
traces:
receivers:
- otlp
processors:
- memory_limiter
- batch
exporters:
- otlp/jaeger
metrics:
receivers:
- otlp
- prometheus
processors:
- memory_limiter
- batch
exporters:
- debug
- prometheus
logs: null
ports:
jaeger-compact:
enabled: false
jaeger-thrift:
enabled: false
jaeger-grpc:
enabled: false
zipkin:
enabled: false
metrics:
enabled: true
containerPort: 8889
servicePort: 8889
protocol: TCP
resources:
limits:
cpu: 2
memory: 4Gi
ingress:
enabled: false
serviceMonitor:
enabled: true ExpectationOnce, the metrics port ( Additional information
Could you provide an example how to configure Collector with Prometheus? Or point out the mistakes in my configuration? I managed to do it with "plain" Docker containers, but I'm having hard times configuring Kubernetes resources. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The problem was that I was unaware that Prometheus CRD has a ServiceMonitor selector. By default, it only looked for ServiceMonitors which had serviceMonitor:
enabled: true
extraLabels:
release: prometheus I was able to see the metrics in the UI. |
Beta Was this translation helpful? Give feedback.
The problem was that I was unaware that Prometheus CRD has a ServiceMonitor selector. By default, it only looked for ServiceMonitors which had
release: prometheus
label. After changing the configuration of ServiceMonitor to:I was able to see the metrics in the UI.