integrationtest.prometheusstats.main

Test-suite for stat collection using prometheus.

This test uses a TCP socket connection to localhost:8080.

Members

Classes

ClientTask
class ClientTask

HTTP client task. It sends one HTTP GET request to the prometheus endpoint and receives a respone that should contain the expected stats, as provided in PrometheusStats.collection_text.

PrometheusStats
class PrometheusStats

A class containing structs representing stats and their labels, a method that can be added to the CollectorRegistry, followed by a textual representation of the stats mock-collected here.

Functions

main
int main()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).