avioconsulting / mule-opentelemetry-module

Mule Extension to generate OpenTelemetry traces and metrics
https://avioconsulting.github.io/mule-opentelemetry-module/
BSD 2-Clause "Simplified" License
25 stars 8 forks source link

Support for Prometheus Exporter? #81

Closed arpitshah29 closed 1 year ago

arpitshah29 commented 2 years ago

Hello Team - I was going through the Extension documentation around generic exporter, I see support for Promethues Metric Exporter - https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure#prometheus-exporter - I looked at the extension code and ran a PoC with latest extension version (v1.1.0) while exporter is getting initialized I am not seeing anything exposed to Prometheus server to scrap? Just wondering if I am missing anything. 🤔

Attaching PoC/Steps

Promethues/Grafana Setup -
Prom.zip

  1. Unzip Prom.zip - from Root Fire : docker-compose up Grafana at http://localhost:3000/ (username/password is admin/admin) Prometheus at http://localhost:9090/ AlertManager at http://localhost:9093/

  2. MuleSoft PoC App - test123456.zip

manikmagar commented 2 years ago

@arpitshah29 Thank you for provided details and artifacts. This module currently only support exporting traces, not metrics/logs (Related #38 ). That's the reason you don't see any in Prometheus. Using SDK extensions, you can turn on metrics but at the moment module isn't gathering any metrics data.

arpitshah29 commented 2 years ago

I see, thanks for quick response @manikmagar - may I suggest updating Documentation to set correct expectation?

I really appreciate efforts to open source this module. Thanks!

manikmagar commented 2 years ago

may I suggest updating Documentation to set correct expectation?

Yes. That would be the right thing to do. We will update it in the documentation. Thank you for catching it.