mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:39:00 +01:00
Improve gauges
This commit is contained in:
parent
ccadcf42c8
commit
25caa332ea
@ -57,7 +57,8 @@ abstract class AbstractServer extends Loop
|
|||||||
public function __construct(MTProto $API)
|
public function __construct(MTProto $API)
|
||||||
{
|
{
|
||||||
$this->internalInit($API);
|
$this->internalInit($API);
|
||||||
$this->connectionGauge = $API->getPromGauge("", "ipc_server_connections", "Number of IPC server connections");
|
$this->connectionGauge = $API->getPromGauge("MadelineProto", "ipc_server_connections", "Number of IPC server connections");
|
||||||
|
$this->connectionGauge?->set(0);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Server version.
|
* Server version.
|
||||||
|
@ -966,6 +966,7 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
|
|||||||
}, new DefaultErrorHandler);
|
}, new DefaultErrorHandler);
|
||||||
}
|
}
|
||||||
$this->updateCtr = $this->getPromCounter("MadelineProto", "update_count", "Number of received updates since the session was created");
|
$this->updateCtr = $this->getPromCounter("MadelineProto", "update_count", "Number of received updates since the session was created");
|
||||||
|
$this->updateCtr?->incBy(0);
|
||||||
// Start IPC server
|
// Start IPC server
|
||||||
if (!$this->ipcServer) {
|
if (!$this->ipcServer) {
|
||||||
$this->ipcServer = new Server($this);
|
$this->ipcServer = new Server($this);
|
||||||
|
Loading…
Reference in New Issue
Block a user