Skip to content

Commit e93cc0f

Browse files
authored
Remove help text validation (#1866)
Resolves #1712 Signed-off-by: Jay DeLuca <jaydeluca4@gmail.com>
1 parent 93b352f commit e93cc0f

File tree

1 file changed

+0
-5
lines changed
  • prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats

1 file changed

+0
-5
lines changed

prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/TextFormatUtil.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,6 @@ private static MetricSnapshot mergeSnapshots(List<MetricSnapshot> snapshots) {
241241
first.getMetadata().getPrometheusName(), snapshot.getMetadata().getPrometheusName())) {
242242
throw new IllegalArgumentException("Cannot merge snapshots: inconsistent metric name");
243243
}
244-
if (!Objects.equals(first.getMetadata().getHelp(), snapshot.getMetadata().getHelp())) {
245-
throw new IllegalArgumentException(
246-
"Cannot merge snapshots: conflicting help for metric "
247-
+ first.getMetadata().getPrometheusName());
248-
}
249244
if (!Objects.equals(first.getMetadata().getUnit(), snapshot.getMetadata().getUnit())) {
250245
throw new IllegalArgumentException(
251246
"Cannot merge snapshots: conflicting unit for metric "

0 commit comments

Comments
 (0)