From 4d4b30ab41fec278d28bc1f19de7e99ea2eba6b2 Mon Sep 17 00:00:00 2001 From: Jay DeLuca Date: Tue, 10 Feb 2026 10:50:31 -0500 Subject: [PATCH] Remove help text validation Signed-off-by: Jay DeLuca --- .../prometheus/metrics/expositionformats/TextFormatUtil.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/TextFormatUtil.java b/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/TextFormatUtil.java index 2891d544c..5f5f05e8b 100644 --- a/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/TextFormatUtil.java +++ b/prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/TextFormatUtil.java @@ -241,11 +241,6 @@ private static MetricSnapshot mergeSnapshots(List snapshots) { first.getMetadata().getPrometheusName(), snapshot.getMetadata().getPrometheusName())) { throw new IllegalArgumentException("Cannot merge snapshots: inconsistent metric name"); } - if (!Objects.equals(first.getMetadata().getHelp(), snapshot.getMetadata().getHelp())) { - throw new IllegalArgumentException( - "Cannot merge snapshots: conflicting help for metric " - + first.getMetadata().getPrometheusName()); - } if (!Objects.equals(first.getMetadata().getUnit(), snapshot.getMetadata().getUnit())) { throw new IllegalArgumentException( "Cannot merge snapshots: conflicting unit for metric "