Modelplane Modelplane docs

MetricMapping Custom Resource

How to normalize one component’s Prometheus metrics onto the modelplane_* surface. The metrics collector reads every MetricMapping and renders the matching rename and label rules into its config. Modelplane ships a MetricMapping per common engine; a platform team applies one more for a new or forked engine.

#Metadata

API version
modelplane.ai/v1alpha1
Kind
MetricMapping
Scope
Cluster
Short names
mm

#Spec

How to normalize one component’s Prometheus metrics onto the modelplane_* surface. The metrics collector reads every MetricMapping and renders the matching rename and label rules into its config. Modelplane ships a MetricMapping per common engine; a platform team applies one more for a new or forked engine.

# labels optional object

Label rewrites applied to the matched series.

# add optional map[string]string

Labels to add to every matched series.

# rename optional map[string]string

Source metric name to its modelplane_* name, e.g. vllm:time_to_first_token_seconds becomes modelplane_time_to_first_token.

# selector optional object

Selects the pods this mapping applies to, by label. An engine mapping matches the engine-type label (modelplane.ai/engine); a scheduler mapping matches the scheduler’s pods.

# matchLabels optional map[string]string

#Status

# conditions optional object[]