Interface JvmMemoryCommittedMeterConvention
- All Known Implementing Classes:
MicrometerJvmMemoryCommittedMeterConvention, OpenTelemetryJvmMemoryCommittedMeterConvention
public interface JvmMemoryCommittedMeterConvention
Convention for JVM memory committed metrics.
- Since:
- 1.18.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Canonical name of the meter.default TagsgetTags(MemoryPoolMXBean memoryPoolBean) Tags specific to this meter convention.Create aJvmMemoryCommittedMeterConventionwith the given name.of(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryCommittedMeterConventionwith the given name and tags function.
-
Method Details
-
getName
-
getTags
Tags specific to this meter convention.- Parameters:
memoryPoolBean- the memory pool bean from which to derive tags- Returns:
- tags to use with the meter
-
of
Create aJvmMemoryCommittedMeterConventionwith the given name.- Parameters:
name- meter name- Returns:
- a new convention instance
-
of
static JvmMemoryCommittedMeterConvention of(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryCommittedMeterConventionwith the given name and tags function.- Parameters:
name- meter nametagsFunction- function to derive tags from aMemoryPoolMXBean- Returns:
- a new convention instance
-