-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* setting up prometheus * move header to include directory * clang-format * clang-format * remove uncessary changes * sort includes * sort includes * switch type of ports to uint16_t * fix compile warnings * save prometheus default host and port into a constant * use uint16_t for command line port input * add prometheus section to config parser * cleanup tetra-receiver main * fix prometheus config parser * add name element to config * add prometheus polling interval config option * implement first part of gnuradio processing for prometheus * implement gnuradio block to populate the prometheus gauge * making code pretty * do averaging over one second for the signal stregth * prometheus-gauge-populator: remove debug print * remove unused variables * adding mock & tests * borken tests * Revert "borken tests" This reverts commit 7035ef7. * Revert "adding mock & tests" This reverts commit 1934257. * remove unused comment in test * review comments * delete default constructor of PrometheusGaugePopulator --------- Co-authored-by: Markus Schmidl <[email protected]>
- Loading branch information
1 parent
7fa467c
commit 5678b39
Showing
13 changed files
with
384 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef PROMETHEUS_H | ||
#define PROMETHEUS_H | ||
|
||
#include <memory> | ||
|
||
#include <prometheus/counter.h> | ||
#include <prometheus/exposer.h> | ||
#include <prometheus/registry.h> | ||
|
||
class PrometheusExporter { | ||
private: | ||
std::shared_ptr<prometheus::Registry> registry_; | ||
std::unique_ptr<prometheus::Exposer> exposer_; | ||
|
||
public: | ||
PrometheusExporter(const std::string& host) noexcept; | ||
~PrometheusExporter() noexcept = default; | ||
|
||
auto signal_strength() noexcept -> prometheus::Family<prometheus::Gauge>&; | ||
}; | ||
|
||
#endif // PROMETHEUS_H |
Oops, something went wrong.