Interface JvmMemoryUsedMeterConvention
- All Known Implementing Classes:
MicrometerJvmMemoryUsedMeterConvention, OpenTelemetryJvmMemoryUsedMeterConvention
public interface JvmMemoryUsedMeterConvention
Convention for JVM memory used 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.static JvmMemoryUsedMeterConventionCreate aJvmMemoryUsedMeterConventionwith the given name.static JvmMemoryUsedMeterConventionof(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryUsedMeterConventionwith 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 aJvmMemoryUsedMeterConventionwith the given name.- Parameters:
name- meter name- Returns:
- a new convention instance
-
of
Create aJvmMemoryUsedMeterConventionwith the given name and tags function.- Parameters:
name- meter nametagsFunction- function to derive tags from aMemoryPoolMXBean- Returns:
- a new convention instance
-