This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/accumulo-website.git
The following commit(s) were added to refs/heads/asf-site by this push: new a5b486359 Automatic Site Publish by Buildbot a5b486359 is described below commit a5b486359a68a4808127ab8288e897f7a38c5279 Author: buildbot <us...@infra.apache.org> AuthorDate: Wed Apr 23 17:42:21 2025 +0000 Automatic Site Publish by Buildbot --- .../blog/2022/06/22/2.1.0-metrics-and-tracing.html | 36 +++++++++++++++++-- output/feed.xml | 40 +++++++++++++++++++--- output/search_data.json | 2 +- 3 files changed, 71 insertions(+), 7 deletions(-) diff --git a/output/blog/2022/06/22/2.1.0-metrics-and-tracing.html b/output/blog/2022/06/22/2.1.0-metrics-and-tracing.html index 187ae65b2..49a6405ac 100644 --- a/output/blog/2022/06/22/2.1.0-metrics-and-tracing.html +++ b/output/blog/2022/06/22/2.1.0-metrics-and-tracing.html @@ -198,7 +198,9 @@ general.micrometer.factory=org.apache.accumulo.test.metrics.TestStatsDRegistryFa <li>Log into Grafana (http://localhost:3003/) using the default credentials (root/root). Click the <code class="language-plaintext highlighter-rouge">Home</code> icon at the top, then click the <code class="language-plaintext highlighter-rouge">Accumulo Micrometer Test Dashboard</code>. If everything is working correctly, then you should see something like the image below.</li> </ol> -<p><img src="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png" alt="Grafana Screenshot" /></p> +<p><a class="p-3 border rounded d-block" href="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png"> + <img src="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png" class="img-fluid rounded" alt="Grafana Screenshot" /> +</a></p> <h1 id="tracing">Tracing</h1> @@ -226,6 +228,8 @@ general.opentelemetry.enabled=true <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># OpenTelemetry settings general.opentelemetry.enabled=true </code></pre></div> </div> + + <p><strong>Note:</strong> If you are using Accumulo 2.1.4 or newer, skip steps 5-6 below and follow the updated instructions in the <a href="#updated-configuration-with-newer-versions-of-opentelemetry">Updated Configuration with Newer Versions of OpenTelemetry</a> section.</p> </li> <li>Configure the OpenTelemetry JavaAgent in accumulo-env.sh by uncommenting the following and updating the path to the java agent jar: <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> ## Optionally setup OpenTelemetry SDK AutoConfigure @@ -256,7 +260,35 @@ general.opentelemetry.enabled=true <li>View traces in Jaeger UI at http://localhost:16686. You can select the service name on the left panel and click <code class="language-plaintext highlighter-rouge">Find Traces</code> to view the trace information. If everything is working correctly, then you should see something like the image below.</li> </ol> -<p><img src="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png" alt="Jaeger Screenshot" /></p> +<p><a class="p-3 border rounded d-block" href="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png"> + <img src="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png" class="img-fluid rounded" alt="Jaeger Screenshot" /> +</a></p> + +<h2 id="updated-configuration-with-newer-versions-of-opentelemetry">Updated Configuration with Newer Versions of OpenTelemetry</h2> + +<p>The original tracing example above was written for Accumulo 2.1.0 which uses OpenTelemetry 1.19.0. Accumulo 2.1.4 has been updated to use OpenTelemetry 1.48.0, which requires different configuration. When working with Accumulo 2.1.4 or any deployment using OpenTelemetry 1.48.0 or newer, use OTLP (OpenTelemetry Protocol) instead of the direct Jaeger exporter.</p> + +<p>Follow steps 1–4 from the <a href="#tracing-example">Tracing Example</a> section, then use these updated steps in place of steps 5-6:</p> + +<ol> + <li>Configure the OpenTelemetry JavaAgent in accumulo-env.sh with OTLP export: + <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">JAVA_OPTS</span><span class="o">=(</span><span class="s1">'-Dotel.traces.exporter=otlp'</span> <span class="s1">'-Dotel.exporter.otlp.endpoint=http://localhost:4317'</span> <span class="s1">'-Dotel.metrics.exporter=none'</span> <span class="s1">'-Dotel.logs.exporter=none'</span> <span class="s2">"</span><span class="k">${</span><span class="nv">JAVA_OPTS</span><span class [...] +<span class="nv">JAVA_OPTS</span><span class="o">=(</span><span class="s1">'-javaagent:path/to/opentelemetry-javaagent.jar'</span> <span class="s2">"</span><span class="k">${</span><span class="nv">JAVA_OPTS</span><span class="p">[@]</span><span class="k">}</span><span class="s2">"</span><span class="o">)</span> +</code></pre></div> </div> + </li> + <li>Start Jaeger with OTLP support: + <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run <span class="nt">--rm</span> <span class="nt">--name</span> jaeger <span class="se">\</span> + <span class="nt">-p</span> 16686:16686 <span class="se">\</span> + <span class="nt">-p</span> 4317:4317 <span class="se">\</span> + <span class="nt">-p</span> 4318:4318 <span class="se">\</span> + <span class="nt">-p</span> 5778:5778 <span class="se">\</span> + <span class="nt">-p</span> 9411:9411 <span class="se">\</span> + jaegertracing/jaeger:2.3.0 +</code></pre></div> </div> + </li> +</ol> + +<p>After completing these updated steps, continue with steps 7-8 from the original instructions to view traces in Jaeger.</p> <p><strong>View all posts in the <a href="/news">news archive</a></strong></p> diff --git a/output/feed.xml b/output/feed.xml index 126dacc75..7de12bc7b 100644 --- a/output/feed.xml +++ b/output/feed.xml @@ -6,8 +6,8 @@ </description> <link>https://accumulo.apache.org/</link> <atom:link href="https://accumulo.apache.org/feed.xml" rel="self" type="application/rss+xml"/> - <pubDate>Wed, 23 Apr 2025 12:16:08 +0000</pubDate> - <lastBuildDate>Wed, 23 Apr 2025 12:16:08 +0000</lastBuildDate> + <pubDate>Wed, 23 Apr 2025 17:42:14 +0000</pubDate> + <lastBuildDate>Wed, 23 Apr 2025 17:42:14 +0000</lastBuildDate> <generator>Jekyll v4.3.4</generator> @@ -1883,7 +1883,9 @@ general.micrometer.factory=org.apache.accumulo.test.metrics.TestStatsDRegistryFa <li>Log into Grafana (http://localhost:3003/) using the default credentials (root/root). Click the <code class="language-plaintext highlighter-rouge">Home</code> icon at the top, then click the <code class="language-plaintext highlighter-rouge">Accumulo Micrometer Test Dashboard</code>. If everything is working correctly, then you should see something like the image below.</li> </ol> -<p><img src="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png" alt="Grafana Screenshot" /></p> +<p><a class="p-3 border rounded d-block" href="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png"> + <img src="/images/blog/202206_metrics_and_tracing/Grafana_Screenshot.png" class="img-fluid rounded" alt="Grafana Screenshot" /> +</a></p> <h1 id="tracing">Tracing</h1> @@ -1911,6 +1913,8 @@ general.opentelemetry.enabled=true <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code># OpenTelemetry settings general.opentelemetry.enabled=true </code></pre></div> </div> + + <p><strong>Note:</strong> If you are using Accumulo 2.1.4 or newer, skip steps 5-6 below and follow the updated instructions in the <a href="#updated-configuration-with-newer-versions-of-opentelemetry">Updated Configuration with Newer Versions of OpenTelemetry</a> section.</p> </li> <li>Configure the OpenTelemetry JavaAgent in accumulo-env.sh by uncommenting the following and updating the path to the java agent jar: <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code> ## Optionally setup OpenTelemetry SDK AutoConfigure @@ -1941,7 +1945,35 @@ general.opentelemetry.enabled=true <li>View traces in Jaeger UI at http://localhost:16686. You can select the service name on the left panel and click <code class="language-plaintext highlighter-rouge">Find Traces</code> to view the trace information. If everything is working correctly, then you should see something like the image below.</li> </ol> -<p><img src="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png" alt="Jaeger Screenshot" /></p> +<p><a class="p-3 border rounded d-block" href="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png"> + <img src="/images/blog/202206_metrics_and_tracing/Jaeger_Screenshot.png" class="img-fluid rounded" alt="Jaeger Screenshot" /> +</a></p> + +<h2 id="updated-configuration-with-newer-versions-of-opentelemetry">Updated Configuration with Newer Versions of OpenTelemetry</h2> + +<p>The original tracing example above was written for Accumulo 2.1.0 which uses OpenTelemetry 1.19.0. Accumulo 2.1.4 has been updated to use OpenTelemetry 1.48.0, which requires different configuration. When working with Accumulo 2.1.4 or any deployment using OpenTelemetry 1.48.0 or newer, use OTLP (OpenTelemetry Protocol) instead of the direct Jaeger exporter.</p> + +<p>Follow steps 1–4 from the <a href="#tracing-example">Tracing Example</a> section, then use these updated steps in place of steps 5-6:</p> + +<ol> + <li>Configure the OpenTelemetry JavaAgent in accumulo-env.sh with OTLP export: + <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">JAVA_OPTS</span><span class="o">=(</span><span class="s1">'-Dotel.traces.exporter=otlp'</span> <span class="s1">'-Dotel.exporter.otlp.endpoint=http://localhost:4317'</span> <span class="s1">'-Dotel.metrics.exporter=n [...] +<span class="nv">JAVA_OPTS</span><span class="o">=(</span><span class="s1">'-javaagent:path/to/opentelemetry-javaagent.jar'</span> <span class="s2">"</span><span class="k">${</span><span class="nv">JAVA_OPTS</span><span class="p">[@]</span><span class="k">}</span><span class="s2">"</spa [...] +</code></pre></div> </div> + </li> + <li>Start Jaeger with OTLP support: + <div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>docker run <span class="nt">--rm</span> <span class="nt">--name</span> jaeger <span class="se">\</span> + <span class="nt">-p</span> 16686:16686 <span class="se">\</span> + <span class="nt">-p</span> 4317:4317 <span class="se">\</span> + <span class="nt">-p</span> 4318:4318 <span class="se">\</span> + <span class="nt">-p</span> 5778:5778 <span class="se">\</span> + <span class="nt">-p</span> 9411:9411 <span class="se">\</span> + jaegertracing/jaeger:2.3.0 +</code></pre></div> </div> + </li> +</ol> + +<p>After completing these updated steps, continue with steps 7-8 from the original instructions to view traces in Jaeger.</p> </description> <pubDate>Wed, 22 Jun 2022 00:00:00 +0000</pubDate> <link>https://accumulo.apache.org/blog/2022/06/22/2.1.0-metrics-and-tracing.html</link> diff --git a/output/search_data.json b/output/search_data.json index cf692b217..a72d93471 100644 --- a/output/search_data.json +++ b/output/search_data.json @@ -412,7 +412,7 @@ "blog-2022-06-22-2-1-0-metrics-and-tracing-html": { "title": "2.1.0 Metrics and Tracing Changes", - "content": "Metrics and Tracing changed in 2.1.0. This post explains the new implementations and provides examples on how to configure them.MetricsAccumulo was modified in version 1.7.0 (2015) to use the Hadoop Metrics2 framework for capturing and emitting internal Accumulo metrics. Micrometer, a newer metrics framework, supports sending metrics to many popular monitoring systems. In Accumulo 2.1.0 support for the Hadoop Metrics2 framework has been removed in favor of using Microme [...] + "content": "Metrics and Tracing changed in 2.1.0. This post explains the new implementations and provides examples on how to configure them.MetricsAccumulo was modified in version 1.7.0 (2015) to use the Hadoop Metrics2 framework for capturing and emitting internal Accumulo metrics. Micrometer, a newer metrics framework, supports sending metrics to many popular monitoring systems. In Accumulo 2.1.0 support for the Hadoop Metrics2 framework has been removed in favor of using Microme [...] "url": " /blog/2022/06/22/2.1.0-metrics-and-tracing.html", "categories": "blog" }