mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
Bump
This commit is contained in:
parent
5878cbb470
commit
94c2565e51
@ -430,29 +430,6 @@ $settings->getLogger()->setLevel(Logger::LEVEL_ULTRA_VERBOSE);
|
|||||||
// $settings->setDb((new Postgres)->setDatabase('MadelineProto')->setUsername('daniil')->setPassword('pony'));
|
// $settings->setDb((new Postgres)->setDatabase('MadelineProto')->setUsername('daniil')->setPassword('pony'));
|
||||||
// $settings->setDb((new Mysql)->setDatabase('MadelineProto')->setUsername('daniil')->setPassword('pony'));
|
// $settings->setDb((new Mysql)->setDatabase('MadelineProto')->setUsername('daniil')->setPassword('pony'));
|
||||||
|
|
||||||
// You can also enable collection of additional prometheus metrics.
|
|
||||||
// $settings->getMetrics()->setEnablePrometheusCollection(true);
|
|
||||||
|
|
||||||
// You can also enable collection of additional memory profiling metrics.
|
|
||||||
// Note: you must also set the MEMPROF_PROFILE=1 environment variable or GET parameter.
|
|
||||||
// $settings->getMetrics()->setEnableMemprofCollection(true);
|
|
||||||
|
|
||||||
// Metrics can be returned by an autoconfigured http://127.0.0.1:12345 HTTP server.
|
|
||||||
//
|
|
||||||
// Endpoints:
|
|
||||||
//
|
|
||||||
// /metrics - Prometheus metrics
|
|
||||||
// /debug/pprof - PProf memory profile for pyroscope
|
|
||||||
//
|
|
||||||
// $settings->getMetrics()->setMetricsBindTo(fromString("127.0.0.1:12345"));
|
|
||||||
|
|
||||||
// Metrics can also be returned by the current script via web, if called with a specific query string:
|
|
||||||
//
|
|
||||||
// ?metrics - Prometheus metrics
|
|
||||||
// ?pprof - PProf memory profile for pyroscope
|
|
||||||
//
|
|
||||||
// $settings->getMetrics()->setReturnMetricsFromStartAndLoop(true);
|
|
||||||
|
|
||||||
// For users or bots
|
// For users or bots
|
||||||
MyEventHandler::startAndLoop('bot.madeline', $settings);
|
MyEventHandler::startAndLoop('bot.madeline', $settings);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user