-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[exporter/prometheus] does not show metrics from otlp receiver #32552
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@sterziev88 same situation here |
I am experiencing the same problem. Was anyone able to figure this out? |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I would recommend using scrape metrics to debug this, such as You can also |
Sorry, it looks like you are not using the OTLP receiver in your collector configuration. Do something like: receivers:
otlp:
protocols:
grpc:
endpoint: x.x.x.x:4317
http:
endpoint: x.x.x.x:4318
exporters:
logging:
verbosity: detailed
prometheus:
endpoint: "0.0.0.0:8889"
send_timestamps: true
resource_to_telemetry_conversion:
enabled: true
service:
metrics:
receivers:
- otlp
exporters:
- prometheus
- logging |
Component(s)
No response
What happened?
Description
I use otlp receiver to collect metrics from my applications and I want to use prometheus exporter in order to be able to see them in prometheus but I don't see them.
Steps to Reproduce
delpoy otlp with helm chart 0.85.0
Expected Result
To be able to see metrics in Prometheus
Actual Result
I am not able to see metrics as system_cpu_usage, system_load_average, etc..
Collector version
0.85.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
That is my config in Prometheus:
- job_name: 'sample-job-2'
scrape_interval: 10s
static_configs:
- targets: ['opentelemetry-dev-in-cluster.opentelemetry.svc.cluster.local:8889']
I am able to see that that target is successfully added in Prometheus, according the logs I see that opentelemtry collector successfully receive metrics from my application via otlp protocol but I don't see metrics in my prometheus.
The text was updated successfully, but these errors were encountered: