Collect metrics Unreleased: coming in v1.3

Tune or turn off the short-retention Prometheus that the ome-resources chart deploys for KEDA autoscaling and canary analysis, or scrape OME with your own.

By default, the ome-resources chart runs a Prometheus server, ome-prometheus, that scrapes your InferenceService pods and OME's own components. Two features read from it: canary analysis on OMENative components, when a canary names no other source, and KEDA triggers that point at http://ome-prometheus.ome.svc:9090. It keeps 30 minutes of data on a temporary volume: enough for those decisions, too little for dashboards or long-term monitoring. For those, use your own Prometheus, next to the bundled one or in its place.

What it scrapes

Prometheus runs three scrape jobs, every 15 seconds by default (prometheus.scrapeInterval):

Job What it scrapes
ome-inferenceservice-pods The pods of your InferenceServices, in all namespaces or in the ones that prometheus.scrapeNamespaces lists.
ome-control-plane OME's components: the pods in the chart's namespace with the annotation prometheus.io/scrape: "true".
ome-prometheus Prometheus itself, while prometheus.selfScrape.enabled is true, the default.

The chart lets Prometheus read pods, Services and Endpoints in all namespaces. To scrape more, add jobs to prometheus.extraScrapeConfigs. Limit them to the namespaces that they need: a cluster-wide job makes Prometheus hold all the cluster's pods in memory.

InferenceService pods

The job finds pods by the label ome.io/inferenceservice, which OME sets on all InferenceService pods. It scrapes a pod while the pod is running and ready.

By default, it scrapes all these pods except the ones annotated prometheus.io/scrape: "false". On large or shared clusters, set prometheus.requireScrapeAnnotation: true to scrape only the pods annotated prometheus.io/scrape: "true". Opt pods in with that annotation, not with ome.io/enable-prometheus-scraping: see A target is down.

It scrapes the port in the pod's prometheus.io/port annotation, at the path in prometheus.io/path, or /metrics by default. Most catalog runtimes set these annotations in their engineConfig.annotations, and yours can too.

It adds these labels to the series that it scrapes:

Label Value
namespace The pod's namespace.
pod The pod's name.
inferenceservice The InferenceService's name, from the pod's ome.io/inferenceservice label.
component The pod's component label, for example engine.
revision_hash The pod's ome.io/revision-hash label, which OMENative sets to the hash of the pod's revision.

KEDA triggers and canary queries select series by these labels. A canary query can match revision_hash to compare the new revision's pods with the stable revision's.

OME's components

The ome-control-plane job reads the same port and path annotations, and adds the namespace and pod labels:

Component The bundled Prometheus scrapes A Prometheus Operator stack uses
Controller manager All replicas, on port 8080. serviceMonitor.enabled: true
Model agent Its pods, on port 8080, while modelAgent.enabled is true. podMonitor.enabled: true: see Metrics.
Quota manager Its pods in ome, while its ServiceMonitor is off. Its ServiceMonitor: see Metrics.
Alfred (alpha) Its pods in ome. Its ServiceMonitor: see Alfred metrics and events.
OME scheduler (alpha) Nothing: its metrics need HTTPS and authorization. Its ServiceMonitor: see Metrics.

Servers and metrics describes the controller's metrics endpoint. Controller metrics covers the canary metrics on it, Watch deploys in the controller's metrics its deploy-latency and status-write series, Watch rollout groups in the controller's metrics its rollout-group series, Watch placement in the controller's metrics its multi-cluster placement series, and Watch the TrafficMap in the controller's metrics its saved routing weights and publication fallback.

Step 1: Check the targets

Forward a local port to the Prometheus Service:

Shell
kubectl port-forward -n ome service/ome-prometheus 9090:9090
Output
Forwarding from 127.0.0.1:9090 -> 9090
Forwarding from [::1]:9090 -> 9090

From another terminal, list the active targets:

Shell
curl -s localhost:9090/api/v1/targets | jq -r '.data.activeTargets[] | [.scrapePool, .labels.pod // "-", .health] | @tsv'

Each line shows a target's job, pod and health: up, down, or unknown before its first scrape. Expect lines for the pods that What it scrapes covers, and one ome-prometheus line with - for the pod. If a pod is missing or a target is down, see Troubleshooting.

List the labels of the InferenceService targets:

Shell
curl -s localhost:9090/api/v1/targets | jq -r '.data.activeTargets[] | select(.labels.inferenceservice) | .labels | [.namespace, .inferenceservice, .component, .revision_hash // "-", .pod] | @tsv'

Each line shows a pod's namespace, InferenceService, component, revision hash (- if none) and name.

Step 2: Tune retention, storage and scope

By default, Prometheus keeps 30 minutes of data, up to 6GB, in an 8Gi emptyDir volume that's lost when the pod is replaced. Its 3Gi memory limit suits about 500 InferenceService pods. On a larger fleet, scrape less before you add memory.

This example keeps two hours of data on a volume that survives restarts, and scrapes the InferenceService pods of one namespace:

values.yaml
prometheus:
  retention: 2h
  retentionSize: 12GB
  persistence:
    enabled: true
    size: 16Gi
  scrapeNamespaces:
    - llama-demo
  • persistence replaces the emptyDir with a 16Gi PersistentVolumeClaim, ome-prometheus, from the default StorageClass. Key values lists the claim's other settings.
  • retentionSize: 12GB fits the larger volume. Keep it below 80 to 85% of the volume's size, as the default 6GB does for 8Gi.
  • scrapeNamespaces limits the InferenceService job to llama-demo. The ome-control-plane job still scrapes the namespace ome.

To cut memory further, set requireScrapeAnnotation: true, or drop series with metricRelabelConfigs. This value keeps two of vLLM's series and drops the rest, so first check which series your triggers and queries read:

values.yaml
prometheus:
  metricRelabelConfigs:
    - source_labels: [__name__]
      regex: "vllm:num_requests_waiting|vllm:num_requests_running"
      action: keep

What the upgrade does to the pod depends on where the changed values land:

  • A change that only edits the scrape configuration — scrapeInterval, scrapeNamespaces, requireScrapeAnnotation, metricRelabelConfigs, scrapeLimits, extraScrapeConfigs and selfScrape.enabled — applies in place by default: Prometheus re-reads prometheus.yml instead of the pod being replaced, so the pod keeps its data (prometheus.configReload, which needs the image's Prometheus v3.0 or later). The kubelet takes up to about a minute to write the new ConfigMap content into the pod, and Prometheus applies it at its next check, every 30 seconds (prometheus.configReload.interval). If the change doesn't show, see A configuration change doesn't apply.
  • A change to a value that lands in the pod — retention, retentionSize, persistence, resources, goMemLimit, storage.sizeLimit, the image, where the pod runs, or configReload.enabled itself — replaces the pod.

Add these values to your values file: helm upgrade resets any value that's missing from it. Upgrade with your current chart version, from the CHART column of helm list -n ome:

Shell
helm upgrade --install ome oci://ghcr.io/moirai-internal/charts/ome-resources \
  --namespace ome --version 1.3.0 -f values.yaml

Helm reports that the release ome has been upgraded. Wait for the new Prometheus pod:

Shell
kubectl rollout status deployment ome-prometheus -n ome

When the new pod is running, the command ends with:

Output
deployment "ome-prometheus" successfully rolled out

Print the arguments of the prometheus container, one per line:

Shell
kubectl get deployment ome-prometheus -n ome \
  -o jsonpath='{range .spec.template.spec.containers[?(@.name=="prometheus")].args[*]}{@}{"\n"}{end}'

With the values above and other values at their defaults, the output is:

Output
--config.file=/etc/prometheus/prometheus.yml
--storage.tsdb.path=/prometheus
--storage.tsdb.retention.time=2h
--storage.tsdb.retention.size=12GB
--enable-feature=auto-reload-config
--config.auto-reload-interval=30s
--web.enable-lifecycle
--web.listen-address=:9090

The two auto-reload flags are the in-place reload, prometheus.configReload.

Restart the port-forward, which stopped with the old pod, and rerun the labels command from Step 1. Its first column now reads llama-demo.

Use your own Prometheus

Run your own Prometheus next to the bundled one for dashboards and long-term storage, or in its place. ServiceMonitors, PodMonitors and the chart's alerts need a Prometheus that the Prometheus Operator runs. To replace the bundled one, set up scraping first, then turn it off.

Scrape InferenceService pods

Your Prometheus needs to add the labels that queries select by. Any Prometheus can copy the bundled scrape job, and on a Prometheus Operator stack, OMENative components can use OME's PodMonitors.

Render the bundled scrape configuration:

Shell
helm template ome oci://ghcr.io/moirai-internal/charts/ome-resources \
  --namespace ome --version 1.3.0 --show-only templates/prometheus/configmap.yaml

Helm prints the ConfigMap ome-prometheus-config, rendered with the chart's defaults. Copy the ome-inferenceservice-pods job from its prometheus.yml into your Prometheus's scrape_configs. Your Prometheus needs permission to list and watch pods in the namespaces that it scrapes.

OME creates a PodMonitor for each InferenceService component when the PodMonitor CRD was installed before the controller started: see The PodMonitor CRD. It scrapes /metrics on the first container's port named metrics. Without one, it uses that container's first port if the port has a name, or else a port named http.

For OMENative components, set ome.podMonitor so that your Prometheus selects the PodMonitors, and they add the three labels:

values.yaml
ome:
  podMonitor:
    labels:
      release: prometheus
    relabelings:
      - sourceLabels: ["__meta_kubernetes_pod_label_ome_io_inferenceservice"]
        targetLabel: inferenceservice
      - sourceLabels: ["__meta_kubernetes_pod_label_component"]
        targetLabel: component
      - sourceLabels: ["__meta_kubernetes_pod_label_ome_io_revision_hash"]
        targetLabel: revision_hash
  • labels: the labels that your Prometheus's podMonitorSelector matches.
  • relabelings: relabelings for the PodMonitors' endpoints. These three add inferenceservice, component and revision_hash.
  • metricRelabelings, not shown: filters for the scraped series.

ome.podMonitor applies only to OMENative components. For RawDeployment components, the default for a component without a leader or workers, and for MultiNode (deprecated) components, copy the scrape job.

Upgrade the release with the helm upgrade command from Step 2.

To check the result, run the labels command from Step 1 against your Prometheus.

Scrape OME's components

On a Prometheus Operator stack, turn on the monitors in the OME's components table, and add the labels that your Prometheus selects to their additionalLabels. The controller's ServiceMonitor, ome-controller-manager, needs the Prometheus Operator's monitoring.coreos.com/v1 CRDs. Key values lists its settings.

A Prometheus that scrapes pods by their prometheus.io/scrape annotation finds the controller, model agent, quota manager and Alfred without monitors. Use one of the two ways, or it scrapes these pods twice.

Turn off the bundled Prometheus

Point canary analysis and KEDA at your Prometheus in the same upgrade that sets prometheus.enabled: false. This example uses a Prometheus behind the Service prometheus in the namespace monitoring:

values.yaml
prometheus:
  enabled: false
ome:
  controller:
    canaryAnalysis:
      bundledPrometheusAddress: "http://prometheus.monitoring.svc:9090"
  metricProviders:
    cluster-prometheus:
      serverAddress: "http://prometheus.monitoring.svc:9090"
  • bundledPrometheusAddress is the source for canaries that name none, and can be any Prometheus. If it's empty, the chart still renders the bundled address, so those canaries' samples are all inconclusive. To send a bearer token or headers, name a binding in ome.controller.canaryAnalysis.defaultProvider instead.
  • ome.metricProviders binds the names that canaries and alpha AutoscalerPolicy triggers give in providerRef: see Metric provider bindings. Point the bindings that named the bundled Prometheus at yours.
  • In your InferenceServices, change the serverAddress of the KEDA triggers that point at ome-prometheus.

The upgrade deletes the bundled Prometheus and its data, including the claim ome-prometheus if the chart created it. A claim that you named in persistence.existingClaim stays, and so do your ServiceMonitors, PodMonitors and alert rules.

Upgrade the release with the helm upgrade command from Step 2. Then print the controller's canary settings:

Shell
kubectl get configmap inferenceservice-config -n ome -o jsonpath='{.data.canaryAnalysis}'
Output
{
  "bundledPrometheusAddress": "http://prometheus.monitoring.svc:9090",
  "defaultProvider": "",
  "queryTimeout": "5s",
  "maxConcurrency": 8,
  "cacheTTL": "2m"
}

The upgrade also restarts the controller manager, which then uses the new addresses.

Watch deploys in the controller's metrics

When Prometheus scrapes the controller manager — the bundled one does, and Scrape OME's components sets up your own — four series report how long your deploys take, where they spend the time, and whether the controller's status writes land. Only the leader records them, so filter by its pod label.

Metric Labels What it shows
ome_isvc_time_to_ready_seconds namespace, isvc, deploy_kind A histogram of each deploy, end to end: the seconds from the InferenceService losing readiness — or from its creation, for a first deploy — to its Ready condition next turning True.
ome_omenative_pod_create_to_ready_seconds namespace, isvc, component A histogram of each Instance of an OMENative component turning Ready: the seconds from its earliest pod's creation to the promote.
ome_omenative_rollout_phase_duration_seconds phase A histogram of how long a rollout group sat in a phase, recorded when the group leaves it.
ome_isvc_status_update_total controller, result A counter of the controller's status flushes, by their terminal result.

The time to ready covers every InferenceService and spans the whole deploy — admission, runtime selection, model localization and pod start — because it's anchored on the service's own Ready condition, not on a pod that doesn't exist until those steps finish. It starts when the service last left Ready, at the prior Ready condition's lastTransitionTime, or at the service's creation when the condition has never been set, and it's recorded once per transition, after the status write that flips Ready commits. deploy_kind is read off the prior condition: create when it was Unknown or not yet set — a first deploy — and update when it was False — a rollout of a service that had been Ready. A first deploy that briefly reports False on its way up counts as update.

The pod-create-to-ready histogram starts where the pods do, so the gap between the two histograms is the time a deploy spends before its pods exist. It covers a new Instance's own start — image pull, model localization, readiness — per component, such as engine or decoder.

The phase histogram carries only the phase that the group leaves — a CoordinationPhase value, such as Waiting or Draining — summed across InferenceServices, so its series count stays flat however many services roll. The dwell is measured from the group's lastTransitionTime in the service's status.rolloutCoordination. To single out the group behind a slow phase, read that status, or the per-group counters in Watch rollout groups in the controller's metrics, whose labels name the InferenceService and the group.

The status-flush counter counts the writes of an InferenceService's status (controller="isvc") and of an InferenceReplica's (controller="ir"). A flush that retried past a 409 conflict and committed counts as success. conflict means the retries ran out and the next reconcile rewrites from fresh state: expect some under OMENative's status churn, but a climbing rate says writers are fighting over the object. notfound means the object was deleted mid-flush, and the write was dropped cleanly. error is any other failure.

The histograms' buckets double from one second to about four and a half hours, so the quantiles stay usable from a warm pod restarting to a cold multi-hundred-gigabyte weight load. In queries, an InferenceService's namespace is in the label exported_namespace, because namespace holds the controller's. This one gives the deploys' 95th percentile over the last 30 minutes, first deploys and rollouts apart:

Text
histogram_quantile(0.95, sum by (le, deploy_kind) (rate(ome_isvc_time_to_ready_seconds_bucket[30m])))

And this one the share of status flushes that end in conflict:

Text
sum by (controller) (rate(ome_isvc_status_update_total{result="conflict"}[15m]))
/
sum by (controller) (rate(ome_isvc_status_update_total[15m]))

With the bundled Prometheus's 30-minute retention, the histograms hold only your newest deploys; for dashboards over days, use your own. When an InferenceService is deleted, the manager removes its time-to-ready and pod-create-to-ready series; the phase histogram and the flush counter name no service, so they stay.

Watch rollout groups in the controller's metrics

Seven series on the same endpoint follow the rollout groups of OMENative components fleet-wide: where each group stands, which groups failed and why, the surges maintainRatio refused, the groups serving a mix of revisions, and the revisions each component serves. They cover blue-green and rolling-update groups and the sequences they form; a canary group records none of the series that name a service — Controller metrics covers the canary series. As above, only the leader records them, so filter by its pod label.

Metric Labels What it shows
ome_omenative_rollout_group_phase_total namespace, isvc, group, phase A counter of the group's reconciles, labeled with the phase each one computed: a CoordinationPhase value, Idle for a group at rest.
ome_omenative_rollout_group_transition_total namespace, isvc, group, from, to A counter of the group's phase changes. Its to="Failed" increases are the entries into Failed: Set up alerting queries them.
ome_omenative_rollout_group_failure_total namespace, isvc, group, reason A counter of the reconciles that find the group Failed, with the phase's message as the reason.
ome_omenative_ratio_skew_total namespace, isvc, group A counter of the reconciles on which maintainRatio refused every surge of at least one component, to keep the group's serving ratio in its band.
ome_omenative_mixed_pairing_total namespace, isvc, group A counter of the reconciles that saw a rolling-update group's live pods span more than one revision.
ome_omenative_per_revision_service_total namespace, isvc, component A gauge, despite its name: the component's revisions with live pods — the revisions OME keeps per-revision Services for.
ome_omenative_ratio_gate_bypassed_total component, strategy A counter of the same-pod in-place starts admitted with the serving-capacity band waived: the Normal RatioGateBypassed events, fleet-wide.

The group label is the group's position in spec.rollout.groups, as a string: group="0" is the first group, and a sequence collapses into one group, 0. The phase counter is the per-group companion of the phase histogram above: the histogram stays flat at fleet scale by carrying only the phase, and these counters name the InferenceService and group behind it. The counters move only when the InferenceService reconciles, so a quiet series says the controller has no work on the service, not that its group left a phase.

A group goes Failed when an Instance of any component in it fails — the rollup behind the CoordinationGroupFailed Warning event that rollout groups describes. The event fires once, on the transition; the failure counter counts every reconcile that finds the group Failed, so it keeps climbing while the group sits there, until a change — a fixed image, or resetting the Instances — makes the failed component healthy. For when a group first failed, read the transition counter instead. reason is the group's status message, one fixed sentence per progression, such as one or more Components in the RollingUpdate group failed; a sequence's names the component that blocks it, as in Sequential group blocked by Failed Component: engine.

The skew counter moves only for a group with maintainRatio, on a reconcile that computes Surging or Waiting: when even one surge of some component would leave the serving-ratio band, OME zeroes that component's surge budget for the pass, counts the reconcile once, and records a Normal RatioSkewRejected event on the InferenceService. It counts held passes, not held pods: a steady rate is a component waiting at the hold that Rolling update describes, and the series stops once its peer catches up and the surge fits.

The mixed-pairing counter follows a rolling-update group of two or more components. Each reconcile that sees the group's live pods on more than one revision — one component's pods on two revisions, or two components on different ones — counts once, with a Normal MixedPairingObserved event. A rolling update moves through such a mix by design, so expect it to climb while the group rolls; one still climbing long after the roll says the group never converged.

The per-revision Service gauge is written for every OMENative component that no canary group drives, in a group or not: how many distinct revisions have a live pod, each backed by the per-revision Services that feed the component's traffic status. A component serving one revision reads 1; the gauge rises while a rollout keeps two revisions' pods, and falls back when the old revision's pods go. It counts revisions with any live pod, ready or not, so it can name a revision before the ready-pod split in status does. Despite the _total suffix, read it as a value, not through rate().

The bypass counter tallies the Normal RatioGateBypassed events fleet-wide: a same-pod in-place start — strategy is InPlaceIfPossible or InPlaceOnly — admitted with the serving-capacity band waived, because the drained pod returns 1:1, as Rolling update explains. The waiver is structural, so it also counts in-place starts outside any maintainRatio group — a component in no group, or one a canary group drives — where there was no band to consult; a start the engine-decoder batches pace doesn't count, since the batch step replaces the band there.

As with the deploy series, an InferenceService's namespace is in the label exported_namespace in queries. This one lists the groups the band held in the last 15 minutes:

Text
sum by (exported_namespace, isvc, group) (increase(ome_omenative_ratio_skew_total[15m])) > 0

And this one the components serving more than one revision right now:

Text
ome_omenative_per_revision_service_total > 1

When an InferenceService is deleted, the manager drops its series from all of these; only the bypass counter, which names no service, stays. The relocation counter on the same endpoint, ome_omenative_auto_migrations_total, is covered in Count automatic relocations. To look into one group the series flag, read the service's status.rolloutCoordination, or run kubectl ome rollout.

Watch placement in the controller's metrics

When your InferenceServices set spec.placement, the control-plane cluster's controller manager also reports each service's multi-cluster placement, on the same metrics endpoint. Multi-cluster placement is alpha, still in development and off by default: Turn on routing shows the values that make a cluster the control plane. Thirteen gauges report each service's phase, its winning cluster, each candidate cluster's replicas and the capacity its accepted plan asks for, so you can dashboard and alert on placement fleet-wide instead of reading each service's status.placement. Only the leader records them, so filter by its pod label.

Metric Labels What it shows
ome_isvc_placement_phase namespace, isvc, phase Always 1, one series per service, labeled with its current placement phase: Pending, Admitting, Placed or Failed.
ome_isvc_placement_winner namespace, isvc, cluster Always 1, naming the WorkloadCluster the service is placed on. Only a Single placement records one, and only once a cluster has won.
ome_isvc_placement_candidate namespace, isvc, cluster, phase Always 1 per cluster the control plane has fanned the service out to, labeled with that candidate's phase: Admitting until the cluster admits the workload, then Admitted.
ome_isvc_placement_candidate_admitted_replicas namespace, isvc, cluster The replicas the candidate cluster's Kueue has admitted. In a split placement, the control plane sums it across clusters to decide whether the desired count is met.
ome_isvc_placement_candidate_ready_replicas namespace, isvc, cluster The candidate's ready replicas from the saved status, an input to traffic weighting. During observation grace, it keeps the last successful count.
ome_isvc_placement_candidate_observation_known namespace, isvc, cluster 1 when the saved observation of the candidate is current, 0 when it's retained evidence from before the control plane's reads started failing.
ome_isvc_placement_candidate_observation_failing_since_timestamp_seconds namespace, isvc, cluster When the control plane's reads of the candidate started failing, as Unix seconds, or 0 while they succeed.
ome_isvc_placement_policy_info namespace, isvc, policy, mode Always 1 per service that sets spec.placement, labeled with the declared policy and mode: what was asked for, next to the candidate series that show where it landed.
ome_isvc_placement_split_replicas namespace, isvc The fleet-wide replica total from spec.placement.split.replicas, when the field is set.
ome_isvc_placement_split_max_replicas_per_cluster namespace, isvc The per-cluster cap of the primary component — the engine, or the decoder when the service declares no engine — for a service with a split block, resolved from spec.placement.split.maxPerCluster: the component's own key, else default, else 0. 0 means the primary component is uncapped; a cap that names only another component, such as router, still reads 0.
ome_isvc_placement_total_desired_replicas namespace, isvc The replicas the accepted placement plan asks for in total: requestedReplicas of status.placement.plan, counted in replicas of the primary component, including demand not yet assigned to any cluster.
ome_isvc_placement_candidate_desired_replicas namespace, isvc, cluster The replicas the accepted plan assigns to this cluster: desiredReplicas of the candidate's allocation. A draining or retired cluster reads 0, and unassigned demand appears in the total only.
ome_isvc_placement_capacity_observation_known namespace, isvc 1 when the accepted plan is current and every cluster that still holds capacity has a current observation, 0 otherwise: one series per service, saying whether the desired-replica series and the ready counts can be trusted right now.

The gauges follow status.placement: the manager records them only after the status write lands, so they never advertise a placement the API server rejected. Before each write, it removes the service's stale series — a re-placement doesn't leave the old winner at 1 next to the new one, a phase change doesn't keep the old phase's series, and a cluster dropped from placement stops reporting. When the service is deleted, or stops being a placement source, all its series go. So phase holds one value per service, and ome_isvc_placement_phase{phase="Failed"} == 1 matches exactly the services whose placement failed for good. During a rolling upgrade of the manager, the legacy phase values can still appear: Racing for the service's Admitting, and Placed for a candidate's Admitting.

The two observation series say whether to trust a candidate's ready count. When the control plane's reads of a candidate cluster fail, ome_isvc_placement_candidate_observation_known turns 0 and the failing-since series records when they started failing. For the configured observation grace from that time, the ready count stays at the last successful read, so a blip doesn't zero the cluster's traffic weight; a cluster still unreadable after the grace drops to 0 ready replicas. A successful read turns the known series back to 1 and the failing-since series back to 0.

The three plan series publish only what the saved plan proves. The total reports while the plan in status.placement.plan is the current service's — accepted for its UID at its current generation — so after a spec change, the series goes away until a plan for the new generation is accepted, instead of carrying the old target forward. The per-cluster series report only when the saved candidates add up to that plan: every cluster named once, each with an allocation, the assignments summing to the plan's assignedReplicas and the total equal to assigned plus unassigned demand. A candidate set that doesn't add up publishes no per-cluster rows at all, never a partial target; an unknown observation, though, erases nothing — through observation grace, a cluster keeps its desired row, so the target doesn't flap with observability.

ome_isvc_placement_capacity_observation_known says whether to trust all of that at once. It reads 1 only when the total publishes, the candidate set adds up and every cluster that still holds capacity — a positive desired or current count, or a retained home policy — has a current observation. One unreadable cluster turns it 0 for the whole service, and the per-cluster known series names which one. A cluster fully retired from the plan may stay unknown without turning it 0, since it owes no capacity; but a current observation that still reports ready replicas on a retired allocation does turn it 0, because the evidence contradicts the plan. ome_isvc_placement_capacity_observation_known == 0 flags the services whose desired-versus-ready comparison can't be trusted right now.

As with the deploy series, an InferenceService's namespace is in the label exported_namespace in queries. This one lists the placements whose admitted replicas, summed across clusters, are under the floor their split block asks for:

Text
sum by (exported_namespace, isvc) (ome_isvc_placement_candidate_admitted_replicas)
  < sum by (exported_namespace, isvc) (ome_isvc_placement_split_replicas)

And this one the services short of their accepted plan — every observation current, yet the ready replicas, summed across clusters, under the total the plan asks for:

Text
(sum by (exported_namespace, isvc) (ome_isvc_placement_candidate_ready_replicas)
    < sum by (exported_namespace, isvc) (ome_isvc_placement_total_desired_replicas))
  and sum by (exported_namespace, isvc) (ome_isvc_placement_capacity_observation_known) == 1

To look into one service that the series flag, read its status.placement, or run kubectl ome placement against the control plane.

Watch the TrafficMap in the controller's metrics

When multi-cluster routing is on — alpha, like placement: Turn on routing shows the values — the control-plane cluster's controller manager also reports each cluster's weight and health as saved in each service's TrafficMap, on the same metrics endpoint. Two gauges mirror the map's spec.entries, so you can dashboard and alert on a cluster losing its traffic share fleet-wide instead of reading each map, and a third mirrors its PublicationFallback condition, so you can alert on a map that its publisher serves from a retained plan instead of the live one without polling each map's conditions. Only the leader records them, so filter by its pod label.

Metric Labels What it shows
ome_trafficmap_entry_weight namespace, isvc, cluster The entry's saved weight: the cluster's share of the requests, relative to the service's other entries, from 0 through 1,000,000.
ome_trafficmap_entry_healthy namespace, isvc, cluster The entry's saved healthy flag, 1 or 0: 1 when the cluster can serve and no probe gates it.
ome_trafficmap_publication_fallback namespace, trafficmap, publisher The map's saved PublicationFallback condition, 1 or 0: 1 while the publisher serves its retained last positive plan in place of the current one.

The entry gauges follow the saved map, the way the placement gauges follow status.placement: the routing controller records them only after the TrafficMap write lands, from the spec it persisted, so a failed write can't advertise a routing plan that was never saved. Each write replaces the service's series with the saved entries, so a cluster dropped from the map stops reporting rather than holding its last weight, and a map saved with no entries reports none. All of a service's series go when the InferenceService is deleted, opts out of routing with spec.routing.enabled: false, or stops being a placement source.

Saved is not applied. A publisher applies the saved weights verbatim, but these series don't report the weight the gateway applies, or how the gateway sees a cluster's health: whether the publisher wrote the route is the map's Published condition, and whether the Gateway accepted it is the route's own status.

The fallback gauge reads 1 exactly while the condition is True, with reason LastPositiveRetained: the current plan gives no target a positive weight — every home unready, say — and the publisher keeps serving the last positive plan it fully applied instead. Everything else reads 0, whether the current plan is applied, a publish is under way or failing, or the publication is withdrawn, so alert on the value and read the map's condition for the cause. The publisher records it on every pass over the map, when it reads the map and again after each of its status writes lands, so here too a write the API server rejected never shows. The trafficmap label carries the map's name — its InferenceService's name, which the entry gauges put in isvc — and publisher names the publisher serving the map. The publisher removes the map's series, every publisher value at once, when the map is gone, and when it finishes removing its external state as the map deletes.

Retaining plans is a capability a publisher opts into, and the built-in gatewayapi publisher doesn't retain them: with it, the condition after a successful publish is False with reason Unsupported, so the gauge reads 0 on every map. A 1 can only come from an external fallback-capable publisher, selected in ome.multicluster.config.routing.publisher.name. This lists the maps served from a retained plan right now, fleet-wide:

Text
ome_trafficmap_publication_fallback == 1

As with the deploy series, an InferenceService's namespace is in the label exported_namespace in queries. This one lists the clusters saved unhealthy right now:

Text
ome_trafficmap_entry_healthy == 0

And this one each cluster's saved share of its service's requests, to alert on a falling share:

Text
ome_trafficmap_entry_weight
  / ignoring(cluster) group_left
    sum without (cluster) (ome_trafficmap_entry_weight)

A healthy entry can still be saved at weight 0 — a drain, or a placement move — and when every entry is 0 the shares divide by zero: Why a cluster's weight is zero walks the entry's fields, and the map's Routable condition names the cause for the whole map.

Key values

The prometheus values configure the bundled Prometheus:

Value Default What it sets
prometheus.enabled true Deploys Prometheus.
prometheus.configReload.enabled true Reloads a changed prometheus.yml in place, instead of replacing the pod: see Step 2. Needs Prometheus v3.0 or later. Changing this value replaces the pod once.
prometheus.configReload.interval 30s How often Prometheus checks prometheus.yml for a change. Empty keeps Prometheus's own default.
prometheus.retention 30m How long to keep data.
prometheus.retentionSize 6GB The size at which the oldest data goes. Empty turns the limit off.
prometheus.scrapeInterval 15s How often to scrape.
prometheus.scrapeNamespaces [] The namespaces that the InferenceService job scrapes. Empty means all.
prometheus.requireScrapeAnnotation false Scrapes only the InferenceService pods that opt in.
prometheus.metricRelabelConfigs [] The metric_relabel_configs of the InferenceService job.
prometheus.scrapeLimits None Limits on the InferenceService job's scrapes: sampleLimit, targetLimit and others.
prometheus.extraScrapeConfigs [] Complete scrape jobs, appended to the chart's.
prometheus.resources Requests 100m and 512Mi, limits 500m and 3Gi The container's CPU and memory.
prometheus.goMemLimit Empty A soft memory limit, GOMEMLIMIT. Set it below the container's memory limit.
prometheus.storage.sizeLimit 8Gi The emptyDir volume's size, when persistence is off.
prometheus.persistence.enabled false Keeps the data on a PersistentVolumeClaim.
prometheus.persistence.size 16Gi The size of the chart's claim.
prometheus.persistence.storageClassName Empty The StorageClass of the chart's claim. Empty uses the cluster's default.
prometheus.persistence.existingClaim Empty Your own claim, used instead of the chart's.
prometheus.image.repository, prometheus.image.tag docker.io/prom/prometheus, v3.0.1 The image. global.hub doesn't apply to it: see The Prometheus pod pulls from Docker Hub.
prometheus.nodeSelector, prometheus.tolerations, prometheus.affinity Empty Where the Prometheus pod runs.

The serviceMonitor values configure the controller's ServiceMonitor:

Value Default What it sets
serviceMonitor.enabled false Whether the chart renders the ServiceMonitor ome-controller-manager.
serviceMonitor.interval 30s How often Prometheus scrapes the controller.
serviceMonitor.scrapeTimeout 10s How long a scrape may take.
serviceMonitor.additionalLabels {} Labels on the ServiceMonitor, for your Prometheus's serviceMonitorSelector to match.
serviceMonitor.relabelings [] Relabelings applied before the scrape.
serviceMonitor.metricRelabelings [] Relabelings applied to the scraped series.

Troubleshooting

A pod is missing from the targets

Check that the pod is running and ready. Then check its prometheus.io/scrape annotation, and the requireScrapeAnnotation and scrapeNamespaces values: see What it scrapes.

A target is down

List the targets whose last scrape failed, with the URL that Prometheus scraped and the error:

Shell
curl -s localhost:9090/api/v1/targets | jq -r '.data.activeTargets[] | select(.health == "down") | [.scrapePool, .scrapeUrl, .lastError] | @tsv'

Compare a target's port and path with its pod's annotations, and with the port that the pod serves metrics on.

A port of 9091 or 9088, where no OME container serves metrics, comes from the annotation ome.io/enable-prometheus-scraping: "true", or from the chart value ome.metricsaggregator.enablePrometheusScraping: "true". Remove the annotation, or set the value back to "false", its default. Then opt the pod in with prometheus.io/scrape: "true".

A configuration change doesn't apply

An upgrade that only changes the scrape configuration doesn't replace the Prometheus pod: Prometheus reloads prometheus.yml in place, as Step 2 describes. The change takes up to about a minute and a half: up to about a minute for the kubelet to write the new ConfigMap content into the pod, and up to prometheus.configReload.interval, 30 seconds by default, for Prometheus's next check. Then rerun the commands from Step 1 to see the new scope.

If the change still doesn't show, check whether Prometheus refused the file: an invalid file leaves the running configuration in place, and Prometheus retries it at every check. The pod stays running and ready, so nothing restarts or flags it. With the port-forward from Step 1, read the reload metric:

Shell
curl -s localhost:9090/metrics | grep '^prometheus_config_last_reload_successful'
Output
prometheus_config_last_reload_successful 1

1 says Prometheus loaded the last file it checked. 0 says it refused the file and kept the previous configuration; its logs say why, in an Error reloading config line:

Shell
kubectl logs -n ome deployment/ome-prometheus | grep 'Error reloading config'

Fix the value and upgrade again. On a prometheus.image older than v3.0, which lacks in-place reload, set prometheus.configReload.enabled: false: every configuration change then replaces the pod.

Prometheus keeps restarting

A Prometheus that runs out of memory can run out again as it restarts and reloads recent data. Scrape less, as in Step 2, then raise its memory in prometheus.resources.

InferenceServices stop updating

Look for a binding without serverAddress in the logs of all controller replicas:

Shell
kubectl logs -n ome -l control-plane=ome-controller-manager --tail=-1 | grep 'has no serverAddress'

Each line names the binding, in a fails to load metricProviders config or fails to load autoscalerPolicy config error. Add the binding's serverAddress and upgrade again.

Next steps