AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Opentelemetry prometheus exporter1/17/2024 Scrape_interval: 15s # Default is every 1 minute. prometheus.yaml:/etc/prometheus/prometheus.yml collector-config.yaml:/conf/collector-config.yaml Prometheus will obtain the metric data from the OpenTelemetry Collector. It also provides a Shutdown () function to maintain a shutdown status. Our PrometheusExporter class implements the MetricsExporter interface, and provides an Export () function to export metric data. Image: otel/opentelemetry-collector:latestĬommand: The BookStore WebAPI will generate some business metrics and use the OTLP exporter package ( ) to send the metric data to the OpenTelemetry Collector. It does not implement the sdk/export/metric. The Prometheus Exporter consists of three major components (highlighted in green in the preceding diagram). env OTELCOL_IMG=otel/opentelemetry-collector-dev:latestĬommand: ["-config=/etc/otel-collector-config.yaml", "$ from SimpleSpanProcessor( I came up with my version (sorry for a bit long, really hard to set up a minimum working version due to the lack of docs): Prometheus export is available in the go.opentelemetry.io/otel/exporters/prometheus package. docker-compose.yml (In my app, I removed generators part and prometheus which I currently having issue running)Īlso based on these two demos in open-telemetry/opentelemetry-js repo:.I found this OpenTelemetry collector demo. A push-based Prometheus remote write exporter enables you to send metrics data generated from OpenTelemetry API, Prometheus instrumented libraries. I am trying to make OpenTelemetry exporter to work with OpenTelemetry collector.
0 Comments
Read More
Leave a Reply. |