Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Convert docs/exporter shortcodes into includes #6581

Merged
merged 8 commits into from
Mar 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make prometheus-setup an include
  • Loading branch information
chalin committed Mar 20, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 946648f44d29fad25684681183224aa792cb3ccb
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@ Prometheus text format on request.

### Backend Setup {#prometheus-setup}

<div class="alert alert-info" role="alert"><h4 class="alert-heading">Note</h4>
{{% alert-md title=Note color=info %}}

If you have Prometheus or a Prometheus-compatible backend already set up, you
can skip this section and setup the [Prometheus](#prometheus-dependencies) or
[OTLP](#otlp-dependencies) exporter dependencies for your application.

</div>
{{% /alert-md %}}

You can run [Prometheus](https://prometheus.io) in a docker container,
accessible on port `9090` by following these instructions:
@@ -35,7 +35,7 @@ Run Prometheus in a docker container with the UI accessible on port `9090`:
docker run --rm -v ${PWD}/prometheus.yml:/prometheus/prometheus.yml -p 9090:9090 prom/prometheus --enable-feature=otlp-write-receive
```

<div class="alert alert-info" role="alert"><h4 class="alert-heading">Note</h4>
{{% alert-md title=Note color=info %}}

When using Prometheus' OTLP Receiver, make sure that you set the OTLP endpoint
for metrics in your application to `http://localhost:9090/api/v1/otlp`.
@@ -44,4 +44,4 @@ Not all docker environments support `host.docker.internal`. In some cases you
may need to replace `host.docker.internal` with `localhost` or the IP address of
your machine.

</div>
{{% /alert-md %}}
2 changes: 1 addition & 1 deletion content/en/docs/languages/cpp/exporters.md
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ void InitLogger()

{{% docs/languages/exporters/jaeger %}}

{{% docs/languages/exporters/prometheus-setup %}}
{{% include prometheus-setup.md %}}

### Dependencies {#prometheus-dependencies}

2 changes: 1 addition & 1 deletion content/en/docs/languages/js/exporters.md
Original file line number Diff line number Diff line change
@@ -241,7 +241,7 @@ package:

{{% docs/languages/exporters/jaeger %}}

{{% docs/languages/exporters/prometheus-setup %}}
{{% include prometheus-setup.md %}}

### Dependencies {#prometheus-dependencies}

2 changes: 1 addition & 1 deletion content/en/docs/languages/net/exporters.md
Original file line number Diff line number Diff line change
@@ -200,7 +200,7 @@ var loggerFactory = LoggerFactory.Create(builder =>

{{% docs/languages/exporters/jaeger %}}

{{% docs/languages/exporters/prometheus-setup %}}
{{% include prometheus-setup.md %}}

### Dependencies {#prometheus-dependencies}

2 changes: 1 addition & 1 deletion content/en/docs/languages/python/exporters.md
Original file line number Diff line number Diff line change
@@ -192,7 +192,7 @@ variable to `CUMULATIVE`.

{{% docs/languages/exporters/jaeger %}}

{{% docs/languages/exporters/prometheus-setup %}}
{{% include prometheus-setup.md %}}

### Dependencies {#prometheus-dependencies}