22#include "util/prometheus/Bool.hpp"
23#include "util/prometheus/Label.hpp"
24#include "util/prometheus/Prometheus.hpp"
43 "Whether the process is in strict read-only mode"
50 "Whether the process is writing to the database"
64 "etl_amendment_blocked",
66 "Whether clio detected an amendment block"
76 "etl_corruption_detected",
78 "Whether clio detected a corruption that needs manual attention"
static util::prometheus::Bool boolMetric(std::string name, util::prometheus::Labels labels, std::optional< std::string > description=std::nullopt)
Get a bool based metric. It will be created if it doesn't exist.
Definition Prometheus.cpp:188
A wrapped to provide bool interface for a Prometheus metric.
Definition Bool.hpp:41
Class representing a collection of Prometheus labels.
Definition Label.hpp:59
This namespace contains everything to do with the ETL and ETL sources.
Definition CacheLoader.hpp:36
Represents the state of the ETL subsystem.
Definition SystemState.hpp:33
std::atomic_bool writeConflict
Whether a write conflict was detected.
Definition SystemState.hpp:54
util::prometheus::Bool isAmendmentBlocked
Whether clio detected an amendment block.
Definition SystemState.hpp:63
util::prometheus::Bool isReadOnly
Whether the process is in strict read-only mode.
Definition SystemState.hpp:40
std::atomic_bool isStopping
Whether the software is stopping.
Definition SystemState.hpp:53
util::prometheus::Bool isCorruptionDetected
Whether clio detected a corruption that needs manual attention.
Definition SystemState.hpp:75
util::prometheus::Bool isWriting
Whether the process is writing to the database.
Definition SystemState.hpp:47