Open sterziev88 opened 7 months ago
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 @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
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 up
, and scrape_series_added
. That should help you tell whether or not prometheus was able to scrape the endpoint, and how many series it added.
You can also curl
the collector yourself if you kubectl port-forward
the service you are querying. Check the text output of the endpoint to make sure the metrics you expect are there.
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:
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.