Link Search Menu Expand Document

danog\MadelineProto\Settings\Metrics

Back to index

Author: Daniil Gentili daniil@daniil.it

Metric settings.

Method list:

Methods:

setReturnMetricsFromStartAndLoop(bool $enable): self

Whether to expose prometheus/memprof metrics with startAndLoop, by providing a ?metrics or ?pprof query string.

Parameters:

  • $enable: bool

getReturnMetricsFromStartAndLoop(): bool

Whether to expose prometheus/memprof metrics with startAndLoop, by providing a ?metrics or ?pprof query string.

setEnablePrometheusCollection(bool $enable): self

Whether to enable additional prometheus stat collection for this session.

Parameters:

  • $enable: bool

getEnablePrometheusCollection(): bool

Whether additional prometheus stat collection is enabled for this session.

setEnableMemprofCollection(bool $enable): self

Whether to enable memprof memory stat collection for this session.

Parameters:

  • $enable: bool

getEnableMemprofCollection(): bool

Whether to enable memprof memory stat collection for this session.

setMetricsBindTo(?\Amp\Socket\SocketAddress $metricsBindTo): self

Whether to expose metrics on the specified endpoint via HTTP.

Parameters:

  • $metricsBindTo: ?\Amp\Socket\SocketAddress

See also:

  • \Amp\Socket\SocketAddress

getMetricsBindTo(): ?\Amp\Socket\SocketAddress

Whether to expose metrics on the specified endpoint via HTTP.

See also:

  • \Amp\Socket\SocketAddress

Generated by danog/phpdoc