You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or [inetAddress()](</client_java/api/io/prometheus/metrics/exporter/httpserver/HTTPServer.Builder.html#inetAddress(java.net.InetAddress)>).<!-- editorconfig-checker-disable-line -->
19
19
20
20
`HTTPServer` is configured with three endpoints:
21
21
@@ -24,7 +24,7 @@ or [inetAddress()](</client_java/api/io/prometheus/metrics/exporter/httpserver/H
24
24
-`/` the default handler is a static HTML page.
25
25
26
26
The default handler can be changed
27
-
with [defaultHandler()](</client_java/api/io/prometheus/metrics/exporter/httpserver/HTTPServer.Builder.html#defaultHandler(com.sun.net.httpserver.HttpHandler)>).
27
+
with [defaultHandler()](</client_java/api/io/prometheus/metrics/exporter/httpserver/HTTPServer.Builder.html#defaultHandler(com.sun.net.httpserver.HttpHandler)>).<!-- editorconfig-checker-disable-line -->
28
28
29
29
## Authentication and HTTPS
30
30
@@ -33,7 +33,7 @@ with [defaultHandler()](</client_java/api/io/prometheus/metrics/exporter/httpser
You can find an example of authentication and SSL in the [jmx_exporter](https://github.com/prometheus/jmx_exporter).
36
+
You can find an example of authentication and SSL in the [jmx_exporter](https://github.com/prometheus/jmx_exporter).<!-- editorconfig-checker-disable-line -->
Copy file name to clipboardExpand all lines: docs/content/exporters/pushgateway.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,14 @@ title: Pushgateway
3
3
weight: 5
4
4
---
5
5
6
-
The [Prometheus Pushgateway](https://github.com/prometheus/pushgateway) exists to allow ephemeral and batch jobs to expose their metrics to Prometheus.
7
-
Since these kinds of jobs may not exist long enough to be scraped, they can instead push their metrics to a Pushgateway.
6
+
The [Prometheus Pushgateway](https://github.com/prometheus/pushgateway) exists to allow ephemeral
7
+
and batch jobs to expose their metrics to Prometheus.
8
+
Since these kinds of jobs may not exist long enough to be scraped, they can instead push their
9
+
metrics to a Pushgateway.
8
10
The Pushgateway then exposes these metrics to Prometheus.
9
11
10
-
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html) Java class allows you to push metrics to a Prometheus Pushgateway.
12
+
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html) Java
13
+
class allows you to push metrics to a Prometheus Pushgateway.
11
14
12
15
## Example
13
16
@@ -97,7 +100,8 @@ The `PushGatewayTestApp` in `integration-tests/it-pushgateway` has a complete ex
97
100
98
101
## SSL
99
102
100
-
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html) supports SSL.
103
+
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html)
The `PushGatewayTestApp` in `integration-tests/it-pushgateway` has a complete example of this.
114
118
115
119
## Configuration Properties
116
120
117
-
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html) supports a couple of properties that can be configured at runtime.
121
+
The [PushGateway](/client_java/api/io/prometheus/metrics/exporter/pushgateway/PushGateway.html)
122
+
supports a couple of properties that can be configured at runtime.
118
123
See [config]({{< relref "../config/config.md" >}}).
You can use the [PrometheusMetricsServlet](/client_java/api/io/prometheus/metrics/exporter/servlet/jakarta/PrometheusMetricsServlet.html) in Spring applications.
46
+
You can use
47
+
the [PrometheusMetricsServlet](/client_java/api/io/prometheus/metrics/exporter/servlet/jakarta/PrometheusMetricsServlet.html)<!-- editorconfig-checker-disable-line -->
Copy file name to clipboardExpand all lines: docs/content/getting-started/metric-types.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,8 @@ most important options:
111
111
-`classicBuckets(...)`: Set the classic bucket boundaries. Default buckets are `.005`, `.01`,
112
112
`.025`, `.05`, `.1`, `.25`, `.5`, `1`, `2.5`, `5`, `and 10`. The default bucket boundaries are
113
113
designed for measuring request durations in seconds.
114
-
-`nativeMaxNumberOfBuckets()`: Upper limit for the number of native histogram buckets. Default is 160. When the maximum is reached, the native histogram automatically reduces resolution to stay
114
+
-`nativeMaxNumberOfBuckets()`: Upper limit for the number of native histogram buckets. Default is
115
+
160. When the maximum is reached, the native histogram automatically reduces resolution to stay
115
116
below the limit.
116
117
117
118
See Javadoc
@@ -198,14 +199,15 @@ be changed with `maxAgeSeconds()` and `numberOfAgeBuckets()`.
198
199
Some options can be configured at runtime, see [config]({{< relref "../config/config.md" >}}).
199
200
200
201
In general you should prefer histograms over summaries. The Prometheus query language has a
201
-
function [histogram_quantile()](https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_quantile)
202
+
function [histogram_quantile()](https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_quantile)<!-- editorconfig-checker-disable-line -->
202
203
for calculating quantiles from histograms. The advantage of query-time quantile calculation is that
203
204
you can aggregate histograms before calculating the quantile. With summaries you must use the
204
205
quantile with all its labels as it is.
205
206
206
207
## Info
207
208
208
-
Info metrics are used to expose textual information which should not change during process lifetime. The value of an Info metric is always `1`.
209
+
Info metrics are used to expose textual information which should not change during process lifetime.
Copy file name to clipboardExpand all lines: docs/content/otel/names.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,15 @@ weight: 3
5
5
6
6
OpenTelemetry naming conventions are different from Prometheus naming conventions. The mapping from
7
7
OpenTelemetry metric names to Prometheus metric names is well defined in
8
-
OpenTelemetry's [Prometheus and OpenMetrics Compatibility](https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/)
8
+
OpenTelemetry's [Prometheus and OpenMetrics Compatibility](https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/)<!-- editorconfig-checker-disable-line -->
9
9
spec, and
10
-
the [OpenTelemetryExporter](/client_java/api/io/prometheus/metrics/exporter/opentelemetry/OpenTelemetryExporter.html)
10
+
the [OpenTelemetryExporter](/client_java/api/io/prometheus/metrics/exporter/opentelemetry/OpenTelemetryExporter.html)<!-- editorconfig-checker-disable-line -->
11
11
implements that specification.
12
12
13
13
The goal is, if you set up a pipeline as illustrated below, you will see the same metric names in
14
14
the Prometheus server as if you had exposed Prometheus metrics directly.
15
15
16
-

16
+
<!-- editorconfig-checker-disable-line -->
17
17
18
18
The main steps when converting OpenTelemetry metric names to Prometheus metric names are:
19
19
@@ -25,7 +25,7 @@ The main steps when converting OpenTelemetry metric names to Prometheus metric n
25
25
26
26
OpenTelemetry defines not only a line protocol, but also _semantic conventions_, i.e. standardized
27
27
metric and label names. For example,
28
-
OpenTelemetry's [Semantic Conventions for HTTP Metrics](https://opentelemetry.io/docs/specs/otel/metrics/semantic_conventions/http-metrics/)
28
+
OpenTelemetry's [Semantic Conventions for HTTP Metrics](https://opentelemetry.io/docs/specs/otel/metrics/semantic_conventions/http-metrics/)<!-- editorconfig-checker-disable-line -->
29
29
say that if you instrument an HTTP server with OpenTelemetry, you must have a histogram named
0 commit comments