Class LicenseUsageGauge
java.lang.Object
io.confluent.license.usage.LicenseUsageGauge
Registers a per-node license-usage gauge (constant 1.0, tagged with component identity and
license fingerprint) on the component's
Metrics so its TelemetryReporter exports it.
Best-effort: failures are logged and swallowed.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringlicense_category value emitted when the component is running with no usable license.static final Stringstatic final Stringstatic final Stringstatic final StringPrefix for per-add-on tags whose value is the add-on's expiration in milliseconds.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionLicenseUsageGauge(LicenseManagerConfig config, ConfluentLicenseStore licenseStore) -
Method Summary
-
Field Details
-
METRIC_NAME
- See Also:
-
METRIC_GROUP
- See Also:
-
METRIC_DESCRIPTION
- See Also:
-
TAG_COMPONENT_TYPE
- See Also:
-
TAG_NODE_ID
- See Also:
-
TAG_CLUSTER_ID
- See Also:
-
TAG_LICENSE_TOPIC
- See Also:
-
TAG_LICENSE_KEY_MD5
- See Also:
-
TAG_EXPIRATION_TIME_MS
- See Also:
-
TAG_CUSTOMER_ID
- See Also:
-
TAG_LICENSE_TYPE
- See Also:
-
TAG_LICENSE_CATEGORY
- See Also:
-
TAG_ADDON_PREFIX
Prefix for per-add-on tags whose value is the add-on's expiration in milliseconds.- See Also:
-
LICENSE_CATEGORY_INVALID
license_category value emitted when the component is running with no usable license.- See Also:
-
-
Constructor Details
-
LicenseUsageGauge
-
-
Method Details
-
refresh
Re-registers the gauge on license change. A null license switches to invalid mode (identity tags plus license_category="invalid"); unchanged fingerprint or already-invalid mode is a no-op. -
close
public void close()Removes the registered gauge, if any. Safe to call multiple times.
-