Search in sources :

Example 1 with ExternalMetricNode

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();
}
Also used : TekuNode(tech.pegasys.teku.test.acceptance.dsl.TekuNode) ExternalMetricNode(tech.pegasys.teku.test.acceptance.dsl.ExternalMetricNode) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 ExternalMetricNode (tech.pegasys.teku.test.acceptance.dsl.ExternalMetricNode)1 TekuNode (tech.pegasys.teku.test.acceptance.dsl.TekuNode)1