Interface JvmMemoryUsedAfterLastGcMeterConvention
- All Known Implementing Classes:
MicrometerJvmMemoryUsedAfterLastGcMeterConvention, OpenTelemetryJvmMemoryUsedAfterLastGcMeterConvention
public interface JvmMemoryUsedAfterLastGcMeterConvention
Convention for JVM memory used after last GC 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 aJvmMemoryUsedAfterLastGcMeterConventionwith the given name.of(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryUsedAfterLastGcMeterConventionwith 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 aJvmMemoryUsedAfterLastGcMeterConventionwith the given name.- Parameters:
name- meter name- Returns:
- a new convention instance
-
of
static JvmMemoryUsedAfterLastGcMeterConvention of(String name, Function<MemoryPoolMXBean, Tags> tagsFunction) Create aJvmMemoryUsedAfterLastGcMeterConventionwith the given name and tags function.- Parameters:
name- meter nametagsFunction- function to derive tags from aMemoryPoolMXBean- Returns:
- a new convention instance
-