Link Search Menu Expand Document

danog\MadelineProto\Settings\Prometheus

Back to index

Author: Daniil Gentili daniil@daniil.it

Prometheus settings.

Method list:

Methods:

setReturnMetricsFromStartAndLoop(bool $enable): self

Whether to expose prometheus metrics with startAndLoop, by providing a ?metrics query string.

Parameters:

  • $enable: bool

getReturnMetricsFromStartAndLoop(): bool

Whether to expose prometheus metrics with startAndLoop, by providing a ?metrics query string.

setEnableCollection(bool $enable): self

Whether to enable additional prometheus stat collection for this session.

Parameters:

  • $enable: bool

getEnableCollection(): bool

Whether additional prometheus stat collection is enabled for this session.

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

Whether to expose prometheus metrics on the specified endpoint via HTTP.

Parameters:

  • $metricsBindTo: ?\Amp\Socket\SocketAddress

See also:

  • \Amp\Socket\SocketAddress

getMetricsBindTo(): ?\Amp\Socket\SocketAddress

Whether to expose prometheus metrics on the specified endpoint via HTTP.

See also:

  • \Amp\Socket\SocketAddress

Generated by danog/phpdoc