Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Worker metrics: follow Prometheus naming for units and counters #2886

Todo

Description

@ptondereau

frankenphp_worker_request_time counts seconds (Add(duration.Seconds())), but its name, metadata and the docs omit the unit, and it has no HELP.

Prometheus conventions put the base unit (_seconds) in the name and end counters with _total. request_count, crashes and restarts also miss _total.

Without the unit, dashboards and bridges cannot tell seconds from a count. OTLP consumers get no unit either, since the OpenTelemetry Prometheus spec only reads it from OpenMetrics # UNIT.

Proposal: expose frankenphp_worker_request_time_seconds_total and _total names for the other worker counters alongside the old ones, add HELP to request_time and request_count, and drop the old names in a later major release.

WDYT?

Related: #2481

Activity

  1. henderkes commented on Dec 6, 2026

    @henderkes
    Contributor

    +1, but I'm not deep in the metrics side of things. I know @alexandre-daubois is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions