use of tech.pegasys.teku.test.acceptance.dsl.ExternalMetricNode in project teku by ConsenSys.
the class ExternalMetricPublisherAcceptanceTest method shouldPublishDataFromPrometheus.
@Test
void shouldPublishDataFromPrometheus() throws Throwable {
ExternalMetricNode externalMetricNode = createExternalMetricNode();
externalMetricNode.start();
final TekuNode tekuNode = createTekuNode(config -> config.withExternalMetricsClient(externalMetricNode, 1).withInteropNumberOfValidators(VALIDATOR_COUNT));
tekuNode.start();
externalMetricNode.waitForBeaconNodeMetricPublication();
externalMetricNode.waitForValidatorMetricPublication(VALIDATOR_COUNT);
externalMetricNode.waitForSystemMetricPublication();
tekuNode.stop();
externalMetricNode.stop();
}
Aggregations