mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
ops(multiplayer): wire Prometheus service discovery
This commit is contained in:
@@ -4,10 +4,13 @@ The control plane exposes `/metrics` with bounded operation and status labels.
|
||||
The API latency metric is a cumulative histogram, so Prometheus can evaluate
|
||||
the documented 250 ms p95 SLO with `histogram_quantile`. The optional
|
||||
`deploy/observability/prometheus-rules.yaml` resource provides the API p95 and
|
||||
5xx alerts for clusters running the Prometheus Operator.
|
||||
5xx alerts for clusters running the Prometheus Operator. The matching optional
|
||||
`deploy/observability/prometheus-service-monitor.yaml` discovers the internal
|
||||
control-plane Service on its named `http` port and scrapes only `/metrics`.
|
||||
|
||||
Install the rule only after confirming that the `PrometheusRule` CRD and the
|
||||
`cosmic-clash` namespace exist. The example `runbook_url` values are
|
||||
`ServiceMonitor` CRD and the `cosmic-clash` namespace exist. The example
|
||||
`runbook_url` values are
|
||||
placeholders and must be replaced with the operator's incident documentation
|
||||
before production use.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user