prometheus

This commit is contained in:
2025-12-04 07:42:24 +01:00
parent b72dd738d2
commit 4dff99576b
3 changed files with 1 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
}, },
"runArgs": [ "runArgs": [
"--label", "prometheus=true", "--label", "prometheus=true",
"--network=proxy_net", "--network=tp_net",
"--name=pompes" "--name=pompes"
], ],
"customizations": { "customizations": {

0
main-prometheus.cpp Normal file
View File

View File

@@ -824,13 +824,6 @@ void InitPrometheus()
void ProcessPrometheus() void ProcessPrometheus()
{ {
// raising = 1 => front montant sur la sortie
/*
if (_digital[OUT_PUMP_1].raising) {
std::array<const char*, 1> labels1 = { "1" };
prom_counter_inc(pm_pompe, labels1.data());
}
*/
debit_entree->Set(_digital[IN_FLOW_OUT].dvalue); debit_entree->Set(_digital[IN_FLOW_OUT].dvalue);
debit_sortie->Set(_digital[IN_FLOW_IN].dvalue); debit_sortie->Set(_digital[IN_FLOW_IN].dvalue);
} }