Interface JvmMemoryMaxMeterConvention
- All Known Implementing Classes:
MicrometerJvmMemoryMaxMeterConvention, OpenTelemetryJvmMemoryMaxMeterConvention
public interface JvmMemoryMaxMeterConvention
Convention for JVM memory max 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 JvmMemoryMaxMeterConventionCreate aJvmMemoryMaxMeterConventionwith the given name.static JvmMemoryMaxMeterConventionof(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryMaxMeterConventionwith 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 aJvmMemoryMaxMeterConventionwith the given name.- Parameters:
name- meter name- Returns:
- a new convention instance
-
of
Create aJvmMemoryMaxMeterConventionwith the given name and tags function.- Parameters:
name- meter nametagsFunction- function to derive tags from aMemoryPoolMXBean- Returns:
- a new convention instance
-