New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opentelemetry-plugin >=2.2.1 won't work with opentelemetry-collector #380
Comments
We continuously test with Otel Collector (0.44.0 for me today) and we use on our production Elastic Jenkins instances with the Otel Collector. I'll deep dive on your problem. |
I see the Jenkins metrics verifying on the Prometheus Exposition Format web page published by the Otel Collector Contrib 0.47.0
otel-collector.ymlreceivers:
otlp:
protocols:
grpc:
endpoint: '127.0.0.1:4317'
#...
extensions:
zpages:
endpoint: :55679
receivers:
otlp:
protocols:
grpc:
endpoint: '127.0.0.1:4317'
hostmetrics:
collection_interval: 1m
scrapers:
# cpu not supported on MacOS
# cpu:
load:
memory:
processors:
batch:
exporters:
otlp/elasticcloud:
endpoint: "***.apm.europe-west1.gcp.cloud.es.io:443"
headers:
Authorization: "Bearer ***"
logging:
loglevel: warn
logging/debug:
loglevel: debug
prometheus:
endpoint: 0.0.0.0:8889
resource_to_telemetry_conversion:
enabled: true
service:
pipelines:
metrics:
receivers:
- otlp
- hostmetrics
processors: [batch]
exporters:
- logging
- prometheus
- otlp/elasticcloud
traces:
receivers:
- otlp
processors: [batch]
exporters:
- otlp/elasticcloud
logs:
receivers: [otlp]
processors: [batch]
exporters:
- logging/debug
- otlp/elasticcloud
extensions: [zpages] http://localhost:8889/metrics
|
@sappersd can you verify with a |
Thx a lot for your help! opentelemetry-collector:0.47.0 I just copied your config for collector plugin: otel-collector-config.yaml
curl 127.0.0.1:8889/metrics
And here are logs for OpenTelemetry Plugin Version 2.3.1-SNAPSHOT (private-d73fc646-root) curl 127.0.0.1:8889/metrics
|
I rechecked v2.2.1 - It works as well (there was my mistake into config first time)
I am very grateful for your help! But could you please update |
Thanks. Can you confirm we can close the issue? FYI #381 |
Yes. Thank you. |
Hello @sappersd , we run a survey to better understand Jenkins Observability needs and more broadly CI/CD Observability needs, could you by any chance answer it? |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
CentOS 8 Stream
Reproduction steps
I try to use opentelemetry-plugin for sending metrics to prometheus using opentelemetry-collector. But it won't work.
jenkins (opentelemetry-plugin) -> opentelemetry-collector -> prometheus
There are only few metrics appear into prometheus:
A lot of metrics (I can see it if using Observability Elastic) are absent.
But if I send custom metrics by telegraf (opentelemetry plugin) - I can see metrics into prometheus.
opentelemetry-collector config:
telegraf that can send data to collector and metrics will appear into prometheus
Is it a protocol incompatibility? Or is it my inncorrect configuration?
By the way, if I use last opentelemetry-plugin 2.3.0, than no one metric appear into prometheus.
Expected Results
Actual Results
Anything else?
No response
The text was updated successfully, but these errors were encountered: