danog\BetterPrometheus\BetterCollector
Author: Daniil Gentili [email protected]
A better prometheus collector.
$storageAdapter
: Prometheus\Storage\Adapter
Storage adapter$namespace
: string
Metric namespace$name
: string
Metric name$help
: string
Info about the metric$labels
: array<string, string>
Default labels, i.e. [‘instance’ => ‘instance_1’]__construct(\Prometheus\Storage\Adapter $storageAdapter, string $namespace, string $name, string $help, array $labels = [])
addLabels(array<string, string> $labels): static
__construct(\Prometheus\Storage\Adapter $storageAdapter, string $namespace, string $name, string $help, array $labels = [])
Constructor.
Parameters:
$storageAdapter
: \Prometheus\Storage\Adapter
$namespace
: string
$name
: string
$help
: string
$labels
: array
\Prometheus\Storage\Adapter
addLabels(array<string, string> $labels): static
Create a new instance of this collector, with these additional labels.
Parameters:
$labels
: array<string, string>
Generated by danog/phpdoc