From 8ed75fea29ff1a996ff864e29e8bd83bbed18fd7 Mon Sep 17 00:00:00 2001 From: svrnm Date: Mon, 27 Nov 2023 22:04:34 +0100 Subject: [PATCH] fixes Signed-off-by: svrnm --- content/en/docs/instrumentation/java/exporters.md | 6 +++++- static/refcache.json | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/content/en/docs/instrumentation/java/exporters.md b/content/en/docs/instrumentation/java/exporters.md index 3207b9524410..30fc055302c0 100644 --- a/content/en/docs/instrumentation/java/exporters.md +++ b/content/en/docs/instrumentation/java/exporters.md @@ -236,6 +236,7 @@ The `LoggingSpanExporter`, the `LoggingMetricExporter` and the If you use [SDK auto-configuration](/docs/instrumentation/java/manual/#automatic-configuration) all you need to do is update your environment variables: + ```shell env OTEL_TRACES_EXPORTER=logging OTEL_METRICS_EXPORTER=logging OTEL_LOGS_EXPORTER=logging java -jar ./build/libs/java-simple.jar ``` @@ -262,7 +263,10 @@ Now following the instruction to setup the [OTLP exporters](#otlp-dependencies). To send your metric data to [Prometheus](https://prometheus.io/), you can either [enable Prometheus' OTLP Receiver](https://prometheus.io/docs/prometheus/latest/feature_flags/#otlp-receiver) -and use the [OTLP exporter](#otlp) or you can use the [`PrometheusHttpServer`](https://javadoc.io/doc/io.opentelemetry/opentelemetry-exporter-prometheus/latest/io/opentelemetry/exporter/prometheus/PrometheusHttpServer.html), a `MetricReader`, that starts an HTTP server that will collect metrics and serialize to Prometheus text format on request. +and use the [OTLP exporter](#otlp) or you can use the +[`PrometheusHttpServer`](https://javadoc.io/doc/io.opentelemetry/opentelemetry-exporter-prometheus/latest/io/opentelemetry/exporter/prometheus/PrometheusHttpServer.html), +a `MetricReader`, that starts an HTTP server that will collect metrics and +serialize to Prometheus text format on request. ### Backend Setup {#prometheus-setup} diff --git a/static/refcache.json b/static/refcache.json index a8f9a85b5264..bcb223d1a9fe 100644 --- a/static/refcache.json +++ b/static/refcache.json @@ -4167,6 +4167,10 @@ "StatusCode": 200, "LastSeen": "2023-11-17T12:19:45.412666+01:00" }, + "https://javadoc.io/doc/io.opentelemetry/opentelemetry-exporter-prometheus/latest/io/opentelemetry/exporter/prometheus/PrometheusHttpServer.html": { + "StatusCode": 200, + "LastSeen": "2023-11-27T22:03:28.673499+01:00" + }, "https://javadoc.io/doc/io.opentelemetry/opentelemetry-exporter-zipkin/latest": { "StatusCode": 200, "LastSeen": "2023-11-17T12:19:46.0091+01:00"