001package io.prometheus.metrics.core; 002 003import io.prometheus.metrics.annotations.StableApi; 004 005/** Provides the version of the Prometheus Java Metrics Library. */ 006@StableApi 007public final class PrometheusMetricsVersion { 008 009 private PrometheusMetricsVersion() {} 010 011 /** 012 * Returns the Maven version of the {@code prometheus-metrics-core} artifact containing this 013 * class. 014 * 015 * @return the artifact version, including any suffix such as {@code -SNAPSHOT} 016 */ 017 public static String getVersion() { 018 return VersionInfo.VERSION; 019 } 020}