Skip to content

Commit 85fab98

Browse files
committed
Add Histogram to the list of standard metrics.
Fix typo, make it completely clear that SimpleCollector is not to be subclassed.
1 parent abe20ed commit 85fab98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

simpleclient/src/main/java/io/prometheus/client/Collector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* A collector for a set of metrics.
1010
* <p>
11-
* Normal users should use {@link Gauge}, {@link Counter} and {@link Summary}.
11+
* Normal users should use {@link Gauge}, {@link Counter}, {@link Summary} and {@link Histogram}.
1212
* <p>
1313
* Subclasssing Collector is for advanced uses, such as proxying metrics from another monitoring system.
1414
* It is it the responsibility of subclasses to ensure they produce valid metrics.

simpleclient/src/main/java/io/prometheus/client/SimpleCollector.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
import java.util.List;
77

88
/**
9-
* Common functionality for {@link Gauge}, {@link Counter} and {@link Summary}.
9+
* Common functionality for {@link Gauge}, {@link Counter}, {@link Summary} and {@link Histogram}.
1010
* <p>
11-
* This class handles common initlization and label logic for the standard metrics.
12-
* You should never need to subclass this class.
11+
* This class handles common initialization and label logic for the standard metrics.
12+
* You should never subclass this class.
1313
* <p>
1414
* <h2>Initilization</h2>
1515
* After calling build() on a subclass, {@link Builder#name(String) name},

0 commit comments

Comments
 (0)