DanielLeens commented on issue #13501:
URL: https://github.com/apache/seatunnel/issues/13501#issuecomment-7221041987

   # Draft reply: #13501
   
   Classification: F / Zeta Prometheus operational metrics.
   
   This is a real observability gap. On current `dev` 
(`ee0fb0d72f67edbcd6caf08360fd354fa68e002f`), `MetricsServlet` serializes the 
registered Prometheus collectors; `ClusterMetricExports` exports cluster 
metadata and `node_count`, while `JobMetricExports` exports only aggregate 
`job_count` values. `GetOverviewOperation` already derives total and unassigned 
slots from the resource manager, but those values are not exported as metric 
families. I found no open or closed PR for this exact feature.
   
   Before an implementation PR, please post a short metric contract covering 
these points:
   
   1. In fixed-slot mode, define master-owned gauges whose invariant is `total 
= assigned + unassigned`, including the behavior for tag-filtered workers. For 
dynamic-slot mode, omit the fixed-slot series rather than publishing a 
misleading zero.
   2. Define the per-job series and its lifecycle. A name-only label is neither 
unique nor bounded; the proposal must say whether an immutable job identifier 
is used, how terminal/re-submitted jobs disappear or change value, and how 
retained history is prevented from creating stale alerts.
   3. Define master failover behavior so only the active coordinator exports 
each cluster-wide sample and a scrape cannot retain duplicate or stale series.
   4. Validate the Prometheus and OpenMetrics output, fixed-slot 
allocation/release transitions, terminal/re-submission transitions, and a 
coordinator failover. Keep existing aggregate `job_count` semantics unchanged.
   
   Once those choices are reviewable, a focused Zeta observability PR is 
welcome. Please do not add an unbounded `job_name`-only label or derive these 
cluster-wide values independently on every member.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to