diff --git a/src/Prometheus/Collector.php b/src/Prometheus/Collector.php index cbda884f..b977a9e4 100644 --- a/src/Prometheus/Collector.php +++ b/src/Prometheus/Collector.php @@ -42,7 +42,7 @@ abstract class Collector public function __construct(Adapter $storageAdapter, string $namespace, string $name, string $help, array $labels = []) { $this->storageAdapter = $storageAdapter; - $metricName = ($namespace !== '' ? $namespace . '_' : '') . $name; + $metricName = ($namespace !== '' ? $namespace . ':' : '') . $name; self::assertValidMetricName($metricName); $this->name = $metricName; $this->help = $help;