Class Info.Builder
- Enclosing class:
Info
-
Method Summary
Modifier and TypeMethodDescriptionbuild()The_infosuffix will automatically be appended if it's missing.Throws anUnsupportedOperationExceptionbecause Info metrics cannot have a unit.Methods inherited from class MetricWithFixedMetadata.Builder
constLabels, help, labelNames
-
Method Details
-
name
The_infosuffix will automatically be appended if it's missing.
In the example above bothInfo info1 = Info.builder() .name("runtime_info") .build(); Info info2 = Info.builder() .name("runtime") .build();info1andinfo2will be named"runtime_info"in Prometheus.Throws an
IllegalArgumentExceptionifMetricMetadata.isValidMetricName(name)isfalse.- Overrides:
namein classMetricWithFixedMetadata.Builder<Info.Builder, Info>
-
unit
Throws anUnsupportedOperationExceptionbecause Info metrics cannot have a unit.- Overrides:
unitin classMetricWithFixedMetadata.Builder<Info.Builder, Info>
-
build
- Specified by:
buildin classMetricWithFixedMetadata.Builder<Info.Builder, Info>
-