Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: svrnm <[email protected]>
  • Loading branch information
svrnm committed Nov 27, 2023
1 parent cb68cd9 commit 8ed75fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion content/en/docs/instrumentation/java/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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}

Expand Down
4 changes: 4 additions & 0 deletions static/refcache.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8ed75fe

Please sign in to comment.