use of org.cloudfoundry.promregator.fetcher.TextFormat004Parser in project promregator by promregator.
the class MetricsEndpointTest method testGetMetrics.
@Test
public void testGetMetrics() {
Assert.assertNotNull(subject);
String response = subject.getMetrics();
Assert.assertNotNull(response);
Assert.assertNotEquals("", response);
TextFormat004Parser parser = new TextFormat004Parser(response);
HashMap<String, MetricFamilySamples> mapMFS = parser.parse();
Assert.assertNotNull(mapMFS.get("metric_unittestapp"));
Assert.assertNotNull(mapMFS.get("metric_unittestapp2"));
}
Aggregations