Skip to content

Commit

Permalink
Describe OpenTelemetry memory reuse mode in Pulsar
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosvictor committed Jul 5, 2024
1 parent 6dd908a commit b3812a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/deploy-monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,11 @@ OpenTelemetry provides an experimental mechanism to control the maximum cardinal
limiting the resource usage of the exporter. Pulsar sets the value to 10000 attributes by default. For brokers with a
large number of topics, this can prove insufficient. The value is controlled by environment variable
`OTEL_EXPERIMENTAL_METRICS_CARDINALITY_LIMIT`.

#### Memory Reuse Configuration

OpenTelemetry provides an experimental mechanism to control the reuse of metric attributes. This is particularly useful
for systems with high cardinality metrics, as it reduces the number of memory allocations caused by collector runs. The
mechanism is enabled by default in Pulsar, and can be overridden by environment variable
`OTEL_JAVA_EXPERIMENTAL_EXPORTER_MEMORY_MODE`. For further details and valid configuration values, refer to the
exporter configuration [documentation](https://opentelemetry.io/docs/languages/java/configuration/#exporters).

0 comments on commit b3812a1

Please sign in to comment.