Skip to content

Commit c4fae5b

Browse files
committed
edits per review
#7459
1 parent 430bf05 commit c4fae5b

File tree

4 files changed

+36
-17
lines changed

4 files changed

+36
-17
lines changed

modules/ROOT/pages/introduction-monitoring-metrics.adoc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,27 @@
88
//
99
:page-layout: general-reference
1010
:page-type: general
11-
:page-description: With Open Liberty, two types of metrics are available to monitor your applications, REST endpoint-style metrics that are provided by MicroProfile Metrics, and Java Management Extensions (JMX) metrics.
11+
:page-description: With Open Liberty, three types of metrics are available to monitor your applications: OpenTelemetry metrics provided by MicroProfile Telemetry, REST endpoint-style metrics that are provided by MicroProfile Metrics, and Java Management Extensions (JMX) metrics.
1212
:seo-title: Monitoring with metrics - OpenLiberty.io
13-
:seo-description: With Open Liberty, two types of metrics are available to monitor your applications, REST endpoint-style metrics that are provided by MicroProfile Metrics, and Java Management Extensions (JMX) metrics.
13+
:seo-description: With Open Liberty, three types of metrics are available to monitor your applications: OpenTelemetry metrics provided by MicroProfile Telemetry, REST endpoint-style metrics that are provided by MicroProfile Metrics, and Java Management Extensions (JMX) metrics..
1414
= Monitoring with metrics
1515

16-
Two kinds of metrics are available to monitor your Open Liberty applications: REST endpoint-style metrics that are provided by MicroProfile Metrics, and Java Management Extensions (JMX) metrics. MicroProfile Metrics and JMX metrics can be used separately or in conjunction to improve the observability of your application systems.
16+
Three kinds of metrics are available to monitor your Open Liberty applications: OpenTelemetry metrics from MicroProfile Telemetry, REST endpoint-style metrics from MicroProfile Metrics, and Java Management Extensions (JMX) metrics. MicroProfile Metrics and JMX metrics can be used separately or in conjunction to improve the observability of your application systems.
1717

18+
19+
MicroProfile Telemetry 2.0 and later exports metrics to OTLP or another configured OpenTelemetry metrics exporter. You might prefer this option if you also use MicroPRofile Telemetry to manage your logs and traces.
1820
MicroProfile Metrics can be accessed by monitoring tools, such as Prometheus, or by any client that can make REST requests.
1921
<<#jmx,JMX metrics>> are suitable for use by Java-based monitoring tools that can communicate with JMX servers, or by custom JMX clients.
2022

21-
Open Liberty uses MicroProfile Metrics to expose metrics that describe the internal state of many Open Liberty components.
22-
Developers can also use the MicroProfile Metrics API to expose metrics from their applications.
23-
For more information about adding these metrics to your applications, see xref:microservice-observability-metrics.adoc#add[Adding metrics to your applications] and the link:/guides/microprofile-metrics.html[Providing metrics from a microservice] guide. For a list of all REST endpoint-style metrics that are available for Open Liberty, see the xref:metrics-list.adoc[Metrics reference list].
24-
25-
[#mptel]
23+
[#mptelem]
2624
== Collect and export metrics with MicroProfile Telemetry
27-
When you enable the MicroProfile Telemetry feature version 2.0 and later, you can manage your logs, metrics, and traces in a standardized way with the OpenTelemetry protocol. For more information, see xref:microprofile-telemetry[Enable observability with MicroProfile Telemetry].
25+
When you enable the MicroProfile Telemetry feature version 2.0 and later, you can manage your logs, metrics, and traces in a standardized way with the OpenTelemetry protocol. For more information, see xref:microprofile-telemetry.adoc[Enable observability with MicroProfile Telemetry].
2826

2927
[#endpoint]
3028
== MicroProfile Metrics and the metrics endpoint
29+
Open Liberty uses MicroProfile Metrics to expose metrics that describe the internal state of many Open Liberty components. Developers can also use the MicroProfile Metrics API to expose metrics from their applications.
30+
For more information about adding these metrics to your applications, see xref:microservice-observability-metrics.adoc#add[Adding metrics to your applications] and the link:/guides/microprofile-metrics.html[Providing metrics from a microservice] guide. For a list of all REST endpoint-style metrics that are available for Open Liberty, see the xref:metrics-list.adoc[Metrics reference list].
31+
3132
The MicroProfile Metrics feature provides a `/metrics` REST interface that conforms to the MicroProfile Metrics specification. You can access MicroProfile Metrics with Open Liberty by feature:mpMetrics[display=enabling the MicroProfile Metrics feature]. Real-time values of all metrics are available by calling the `/metrics` endpoint, which provides formatted metric data that can be consumed as time-series data by external monitoring tools.
3233

3334
When an application is running, you can view metric data from any browser by accessing the `/metrics` endpoint, for example, `\https://localhost:9443/metrics`, where `9443` is the port number for your application.
@@ -39,7 +40,7 @@ The format that each response uses depends on the HTTP accept header of the corr
3940
Prometheus format is returned for requests with a `text/plain` accept header.
4041
In MicroProfile metrics 4.0 and earlier, JSON format is returned for requests with an `application/json` accept header.
4142

42-
Metrics endpoints differ in syntax and output between MicroProfile Metrics 5.0 and MicroProfile Metrics 4.0 and earlier. MicroProfile Metrics 5.0 also xref:micrometer-metrics.adoc[uses embedded Micrometer metrics technology] to enable third-party monitoring systems. For more information, see xref:reference:diff/mp-50-60-diff.adoc#metrics[Differences between MicroProfile Metrics 5.0 and 4.0]
43+
Metrics endpoints differ in syntax and output between MicroProfile Metrics 5.0 and MicroProfile Metrics 4.0 and earlier. MicroProfile Metrics 5.0 also xref:micrometer-metrics.adoc[uses embedded Micrometer metrics technology] to enable third-party monitoring systems. For more information, see xref:reference:diff/mp-50-60-diff.adoc#metrics[Differences between MicroProfile Metrics 5.0 and 4.0].
4344

4445
=== Metrics endpoints in MicroProfile Metrics 5.0
4546

modules/ROOT/pages/mptel-log-events-list.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018 IBM Corporation and others.
1+
// Copyright (c) 2024 IBM Corporation and others.
22
// Licensed under Creative Commons Attribution-NoDerivatives
33
// 4.0 International (CC BY-ND 4.0)
44
// https://creativecommons.org/licenses/by-nd/4.0/
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2024 IBM Corporation and others.
2+
// Licensed under Creative Commons Attribution-NoDerivatives
3+
// 4.0 International (CC BY-ND 4.0)
4+
// https://creativecommons.org/licenses/by-nd/4.0/
5+
//
6+
// Contributors:
7+
// IBM Corporation
8+
//
9+
:page-layout: general-reference
10+
:page-type: general
11+
:seo-title: Write logs with MicroProfile Telemetry logging- OpenLiberty.io
12+
:seo-description: The MicroProfile Telemetry logging events that can be captured from the Open Liberty server runtime environment and applications.
13+
= Write logs with MicroProfile Telemetry logging
14+
15+
You can use MicroProfile Telemetry to mange your logs, along with traces and metrics. When you enable the MicroProfile Telemetry 2.0 or later and the OpenTelemetry SDK, MicroProfile Telemetry automatically collects any logs that are sent to the `java.util.logging` API.
16+
17+
Any messages that are logged at a `java.util.logging.Level` log level of `INFO` and above are considered messages. Levels below `INFO` are considered trace. By default, MicroProfile Telemetry automatically collects messages, but you can configure the sources that it collects from in your `server.xml` file. For more information, see link:/docs/latest/reference/feature/mpTelemetry-2.0.html#_collect_logs_from_a_specified_source[Collect logs from a specified source].
18+
19+
For more information about configuring MicroProfile Telemetry to collect and emit logs, metrics, and trace, see xref:microprofile-telemetry.adoc[Enable observability with MicroProfile Telemetry].

modules/ROOT/pages/mptelemetry-metrics-list.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ To enable only the monitoring components that are used by MicroProfile Telemetry
4242

4343
[source,xml]
4444
----
45-
<monitor filter="ConnectionPool,ThreadPool,RequestTiming,Session,WebContainer,REST,GrpcClient,GrpcServer"/>
45+
<monitor filter="ConnectionPool,ThreadPool,RequestTiming,Session,HTTP"/>
4646
----
4747

48-
To disable all vendor metrics, but to keep the `REST` base metrics configure the `server.xml`, as shown in the following example:
48+
To disable all vendor metrics but keep the `Session` base metrics, add the following code to your `server.xml` file:
4949

5050
[source,xml]
5151
----
52-
<monitor filter="REST"/>
52+
<monitor filter="Session"/>
5353
----
5454

5555
To disable all monitoring components, add the following code to your `server.xml` file:
@@ -62,10 +62,9 @@ To disable all monitoring components, add the following code to your `server.xml
6262

6363
== MicroProfile Telemetry 2.0 and later metrics reference
6464

65-
When the MicroProfile Telemetry feature 2.0 and later is enabled, Open Liberty can sends metric data to compatible OpenTelemetry protocol (OTLP) receivers. For more information, see xref:microprofile-telemetry[Enable observability with MicroProfile Telemetry].
65+
When the MicroProfile Telemetry feature 2.0 and later is enabled, Open Liberty can send metric data to compatible OpenTelemetry protocol (OTLP) receivers. For more information, see xref:microprofile-telemetry[Enable observability with MicroProfile Telemetry].
6666

67-
In the table, the Prometheus metric names are listed after each metric.
68-
The tables also list the metric types, metric units, and descriptions of all metrics that are available for Open Liberty. For the vendor metrics, the associated monitoring component that you can use to filter the metric is also included.
67+
The table lists the metric types, descriptions and attributes that are available for Open Liberty. Where applicable, the associated monitoring component that you can use to filter the metric is also included.
6968
The **Features required** column of the table includes the feature or features that must be enabled to obtain that metric data.
7069
The **Version introduced** column specifies the minimum version of the feature that you must enable to collect the metric.
7170

0 commit comments

Comments
 (0)