nextcloud/lib/public/OpenMetrics
moktamd 1c33307a59 fix(metrics): validate label names in Metric, sanitize in AppsInfo
Add validation in the Metric constructor that rejects invalid
OpenMetrics label names with InvalidArgumentException. Sanitize
app IDs at the source in AppsInfo by replacing hyphens with
underscores before creating the Metric.

Fixes nextcloud/server#59247

Signed-off-by: moktamd <moktamd@users.noreply.github.com>
2026-03-31 11:20:40 +00:00
..
IMetricFamily.php feat(openmetrics): introduce OpenMetrics exporter 2026-01-07 09:38:13 +01:00
Metric.php fix(metrics): validate label names in Metric, sanitize in AppsInfo 2026-03-31 11:20:40 +00:00
MetricType.php feat(openmetrics): introduce OpenMetrics exporter 2026-01-07 09:38:13 +01:00
MetricValue.php feat(openmetrics): introduce OpenMetrics exporter 2026-01-07 09:38:13 +01:00