File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
prometheus-metrics-core/src/test/java/io/prometheus/metrics/core/metrics Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 11package io .prometheus .metrics .core .metrics ;
22
3- import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
4-
5- import io .prometheus .metrics .expositionformats .ExpositionFormats ;
6- import io .prometheus .metrics .model .registry .PrometheusRegistry ;
7- import java .io .IOException ;
83import org .junit .jupiter .api .Test ;
94
5+ import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
6+
107class CallbackMetricTest {
118
129 @ Test
@@ -49,15 +46,4 @@ void makeLabels() {
4946 "Cannot pass label values to a CounterWithCallback that was created without label"
5047 + " names." );
5148 }
52-
53- @ Test
54- void manual () throws IOException {
55- PrometheusRegistry prometheusRegistry = new PrometheusRegistry ();
56- Counter counter =
57- Counter .builder ().name ("te:st" ).labelNames ("test" ).register (prometheusRegistry );
58- counter .labelValues ("te:st" ).inc ();
59- ExpositionFormats .init ()
60- .getPrometheusTextFormatWriter ()
61- .write (System .out , prometheusRegistry .scrape ());
62- }
6349}
You can’t perform that action at this time.
0 commit comments